mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 21:37:57 +01:00
Fix about:pentadactyl.
This commit is contained in:
4
common/bootstrap.js
vendored
4
common/bootstrap.js
vendored
@@ -63,7 +63,7 @@ function startup(data, reason) {
|
||||
AddonManager.getAddonByID(addon.id, function (a) { addon = a; });
|
||||
|
||||
// Temporary hack.
|
||||
if (basePath.isDirectory() && JSMLoader.bump == null)
|
||||
if (basePath.isDirectory() && global.JSMLoader && JSMLoader.bump == null)
|
||||
JSMLoader.bump = 2;
|
||||
|
||||
if (basePath.isDirectory())
|
||||
@@ -100,8 +100,6 @@ FactoryProxy.prototype = {
|
||||
dump("dactyl: bootstrap: create module: " + this.contractID + "\n");
|
||||
|
||||
Object.defineProperty(this, "module", { value: {}, enumerable: true });
|
||||
dump("get module " + this.url + "\n");
|
||||
dump(" " + (JSMLoader.stale[this.url]) + "\n");
|
||||
JSMLoader.load(this.url, this.module);
|
||||
return this.module;
|
||||
},
|
||||
|
||||
@@ -303,7 +303,7 @@ AboutHandler.prototype = {
|
||||
|
||||
newChannel: function (uri) {
|
||||
let channel = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService)
|
||||
.newChannel("resource://dactyl-content/about.xul", null, null);
|
||||
.newChannel("dactyl://content/about.xul", null, null);
|
||||
channel.originalURI = uri;
|
||||
return channel;
|
||||
},
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
|
||||
<?xml-stylesheet href="chrome://pentadactyl/skin/about.css" type="text/css"?>
|
||||
<!DOCTYPE overlay SYSTEM "chrome://dactyl/content/dactyl.dtd">
|
||||
<?xml-stylesheet href="resource://dactyl-local-skin/about.css" type="text/css"?>
|
||||
<!DOCTYPE overlay SYSTEM "dactyl://content/dtd">
|
||||
|
||||
<page id="about-&dactyl.name;" orient="vertical" title="About &dactyl.appName;"
|
||||
xmlns="&xmlns.xul;" xmlns:html="&xmlns.html;">
|
||||
|
||||
Reference in New Issue
Block a user