mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 02:28:00 +01:00
Fix some bootstrap issues on upgrade.
This commit is contained in:
8
common/bootstrap.js
vendored
8
common/bootstrap.js
vendored
@@ -134,12 +134,12 @@ function init() {
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof JSMLoader === "undefined")
|
||||
dump("JSMLoader " + (typeof JSMLoader !== "undefined" && JSMLoader.bump) + "\n");
|
||||
if (typeof JSMLoader === "undefined" || JSMLoader.bump != 2)
|
||||
Cu.import("resource://dactyl/bootstrap.jsm", global);
|
||||
|
||||
if (suffix)
|
||||
JSMLoader.suffix = suffix;
|
||||
JSMLoader.load("resource://dactyl/bootstrap.jsm", global);
|
||||
JSMLoader.init(suffix);
|
||||
JSMLoader.load("base.jsm", global);
|
||||
|
||||
for each (let component in components)
|
||||
component.register();
|
||||
|
||||
Reference in New Issue
Block a user