1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 17:37:57 +01:00

Fix loading components after XPI update.

This commit is contained in:
Kris Maglione
2011-01-13 19:59:21 -05:00
parent e2b89a6af3
commit 967a213019
3 changed files with 16 additions and 9 deletions

6
common/bootstrap.js vendored
View File

@@ -63,8 +63,8 @@ function startup(data, reason) {
AddonManager.getAddonByID(addon.id, function (a) { addon = a; });
// Temporary hack.
if (basePath.isDirectory() && false && JSMLoader.bump == null)
JSMLoader.bump = 1;
if (basePath.isDirectory() && JSMLoader.bump == null)
JSMLoader.bump = 2;
if (basePath.isDirectory())
getURI = function getURI(path) {
@@ -100,6 +100,8 @@ 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;
},