summaryrefslogtreecommitdiff
path: root/common/modules/config.jsm
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2012-11-30 19:41:56 -0800
committerKris Maglione <maglione.k@gmail.com>2012-11-30 19:41:56 -0800
commit9305f1a6a4ad86cdbd9618516153e74bb1c18692 (patch)
treecfa45cb78e39291cc66b61d984147b610b421ebf /common/modules/config.jsm
parent81b41176b66e76cb948a045530c9e62f4ded45c4 (diff)
downloadpentadactyl-9305f1a6a4ad86cdbd9618516153e74bb1c18692.tar.gz
Death to E4X and stuff.
Diffstat (limited to 'common/modules/config.jsm')
-rw-r--r--common/modules/config.jsm14
1 files changed, 8 insertions, 6 deletions
diff --git a/common/modules/config.jsm b/common/modules/config.jsm
index 9c4a7d50..4373acab 100644
--- a/common/modules/config.jsm
+++ b/common/modules/config.jsm
@@ -4,7 +4,7 @@
//
// This work is licensed for reuse under an MIT license. Details are
// given in the LICENSE.txt file included with this file.
-/* use strict */
+"use strict";
let global = this;
defineModule("config", {
@@ -592,12 +592,14 @@ config.INIT = update(Object.create(config.INIT), config.INIT, {
let img = window.Image();
img.src = this.logo || "resource://dactyl-local-content/logo.png";
img.onload = util.wrapCallback(function () {
- highlight.loadCSS(<>{"!Logo {"}
+ highlight.loadCSS(literal(/*
+ !Logo {
display: inline-block;
- background: url({img.src});
- width: {img.width}px;
- height: {img.height}px;
- {"}"}</>);
+ background: url({src});
+ width: {width}px;
+ height: {height}px;
+ }
+ */).replace(/\{(.*?)\}/g, function (m, m1) img[m1]));
img = null;
});
},