summaryrefslogtreecommitdiff
path: root/common/modules/config.jsm
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2015-12-19 20:09:04 -0800
committerKris Maglione <maglione.k@gmail.com>2015-12-19 20:09:04 -0800
commitbc9eb79fb310dac1ea8dd304bac4db996c51e6d8 (patch)
treefffc46602edde928f5f0385c0e7ebdcb3d48649c /common/modules/config.jsm
parente3c3748511ff6dfa8d917cbba04eaa7d94ad461c (diff)
downloadpentadactyl-bc9eb79fb310dac1ea8dd304bac4db996c51e6d8.tar.gz
Support Firefox 45 (without e10s).
Diffstat (limited to 'common/modules/config.jsm')
-rw-r--r--common/modules/config.jsm13
1 files changed, 7 insertions, 6 deletions
diff --git a/common/modules/config.jsm b/common/modules/config.jsm
index 1f2551c0..aa8d842e 100644
--- a/common/modules/config.jsm
+++ b/common/modules/config.jsm
@@ -17,6 +17,7 @@ lazyRequire("cache", ["cache"]);
lazyRequire("dom", ["DOM"]);
lazyRequire("highlight", ["highlight"]);
lazyRequire("messages", ["_"]);
+lazyRequire("overlay", ["overlay"]);
lazyRequire("prefs", ["localPrefs", "prefs"]);
lazyRequire("storage", ["storage", "File"]);
lazyRequire("styles", ["Styles"]);
@@ -504,7 +505,7 @@ var ConfigBase = Class("ConfigBase", {
oncommand: "toggleSidebar(this.id || this.observes);" }]);
}
- util.overlayWindow(window, { append: append });
+ overlay.overlayWindow(window, { append: append });
},
get window() { return window; },
@@ -632,14 +633,14 @@ config.INIT = update(Object.create(config.INIT), config.INIT, {
let img = new window.Image;
img.src = this.logo || "resource://dactyl-local-content/logo.png";
img.onload = util.wrapCallback(function () {
- highlight.loadCSS(literal(function () /*
+ highlight.loadCSS(`
!Logo {
display: inline-block;
- background: url({src});
- width: {width}px;
- height: {height}px;
+ background: url(${img.src});
+ width: ${img.width}px;
+ height: ${img.height}px;
}
- */$).replace(/\{(.*?)\}/g, (m, m1) => img[m1]));
+ `);
img = null;
});
},