1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 03:22:26 +01:00

Hackier but more reliable literal() stuff.

This commit is contained in:
Kris Maglione
2014-06-18 12:24:55 -07:00
parent fdf188166d
commit cde8cd6763
15 changed files with 66 additions and 63 deletions

View File

@@ -596,14 +596,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(/*
highlight.loadCSS(literal(function () /*
!Logo {
display: inline-block;
background: url({src});
width: {width}px;
height: {height}px;
}
*/).replace(/\{(.*?)\}/g, (m, m1) => img[m1]));
*/$).replace(/\{(.*?)\}/g, (m, m1) => img[m1]));
img = null;
});
},