1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-30 07:23:39 +02: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); init.superapply(this, arguments);
let img = window.Image(); let img = window.Image();
img.src = this.logo || "chrome://dactyl-local-content/logo.png"; img.src = this.logo || "resource://dactyl-local-content/logo.png";
img.onload = function () { img.onload = util.wrapCallback(function () {
const { highlight } = require("highlight");
highlight.loadCSS(<>{"!Logo {"} highlight.loadCSS(<>{"!Logo {"}
display: inline-block; display: inline-block;
background: url({img.src}); background: url({img.src});
@@ -758,7 +759,7 @@ config.INIT = update(Object.create(config.INIT), config.INIT, {
height: {img.height}px; height: {img.height}px;
{"}"}</>); {"}"}</>);
img = null; img = null;
}; });
}, },
load: function load(dactyl, modules, window) { load: function load(dactyl, modules, window) {

View File

@@ -19,6 +19,4 @@ component {9c8f2530-51c8-4d41-b356-319e0b155c44} components/protocols.js
contract @mozilla.org/network/protocol;1?name=dactyl {9c8f2530-51c8-4d41-b356-319e0b155c44} contract @mozilla.org/network/protocol;1?name=dactyl {9c8f2530-51c8-4d41-b356-319e0b155c44}
component {f4506a17-5b4d-4cd9-92d4-2eb4630dc388} components/protocols.js component {f4506a17-5b4d-4cd9-92d4-2eb4630dc388} components/protocols.js
contract @dactyl.googlecode.com/base/xpc-interface-shim {f4506a17-5b4d-4cd9-92d4-2eb4630dc388} contract @dactyl.googlecode.com/base/xpc-interface-shim {f4506a17-5b4d-4cd9-92d4-2eb4630dc388}
component {81495d80-89ee-4c36-a88d-ea7c4e5ac63f} components/protocols.js
contract @mozilla.org/network/protocol/about;1?what=teledactyl {81495d80-89ee-4c36-a88d-ea7c4e5ac63f}