1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-10 12:05:46 +01:00

Fix help logo.

This commit is contained in:
Kris Maglione
2011-02-21 17:19:49 -05:00
parent 234f50bce8
commit f6b66304f9
2 changed files with 7 additions and 8 deletions

View File

@@ -749,8 +749,9 @@ config.INIT = update(Object.create(config.INIT), config.INIT, {
init.superapply(this, arguments);
let img = window.Image();
img.src = this.logo || "chrome://dactyl-local-content/logo.png";
img.onload = function () {
img.src = this.logo || "resource://dactyl-local-content/logo.png";
img.onload = util.wrapCallback(function () {
const { highlight } = require("highlight");
highlight.loadCSS(<>{"!Logo {"}
display: inline-block;
background: url({img.src});
@@ -758,7 +759,7 @@ config.INIT = update(Object.create(config.INIT), config.INIT, {
height: {img.height}px;
{"}"}</>);
img = null;
};
});
},
load: function load(dactyl, modules, window) {