From d62371042cad2b36d80efb45dc88570193e2a6d4 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Thu, 13 Jan 2011 20:04:14 -0500 Subject: [PATCH] Fix about:pentadactyl. --- common/bootstrap.js | 4 +--- common/components/protocols.js | 2 +- common/content/about.xul | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/common/bootstrap.js b/common/bootstrap.js index e63bc0c6..d7827dbf 100755 --- a/common/bootstrap.js +++ b/common/bootstrap.js @@ -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; }, diff --git a/common/components/protocols.js b/common/components/protocols.js index 80e7e984..539a539a 100644 --- a/common/components/protocols.js +++ b/common/components/protocols.js @@ -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; }, diff --git a/common/content/about.xul b/common/content/about.xul index 00c0aba9..0d97951d 100644 --- a/common/content/about.xul +++ b/common/content/about.xul @@ -1,7 +1,7 @@ - - + +