mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 14:27:58 +01:00
Fix forseeable problem with last commit.
This commit is contained in:
6
common/bootstrap.js
vendored
6
common/bootstrap.js
vendored
@@ -36,7 +36,7 @@ try { // Temporary migration code.
|
||||
catch (e) {}
|
||||
|
||||
const BOOTSTRAP_CONTRACT = "@dactyl.googlecode.com/base/bootstrap";
|
||||
JSMLoader = JSMLoader || BOOTSTRAP_CONTRACT in Cc && Cc[BOOTSTRAP_CONTRACT].getService().wrappedJSObject;
|
||||
JSMLoader = JSMLoader || BOOTSTRAP_CONTRACT in Cc && Cc[BOOTSTRAP_CONTRACT].getService().wrappedJSObject.loader;
|
||||
|
||||
function reportError(e) {
|
||||
dump("\ndactyl: bootstrap: " + e + "\n" + (e.stack || Error().stack) + "\n");
|
||||
@@ -203,11 +203,13 @@ function init() {
|
||||
instance: {
|
||||
QueryInterface: XPCOMUtils.generateQI([]),
|
||||
contractID: BOOTSTRAP_CONTRACT,
|
||||
wrappedJSObject: JSMLoader
|
||||
wrappedJSObject: {}
|
||||
},
|
||||
createInstance: function () this.instance
|
||||
})
|
||||
|
||||
Cc[BOOTSTRAP_CONTRACT].getService().wrappedJSObject.loader = JSMLoader;
|
||||
|
||||
for each (let component in components)
|
||||
component.register();
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ var global = this;
|
||||
|
||||
var BOOTSTRAP_CONTRACT = "@dactyl.googlecode.com/base/bootstrap";
|
||||
var JSMLoader = BOOTSTRAP_CONTRACT in Components.classes &&
|
||||
Components.classes[BOOTSTRAP_CONTRACT].getService().wrappedJSObject;
|
||||
Components.classes[BOOTSTRAP_CONTRACT].getService().wrappedJSObject.loader;
|
||||
|
||||
if (!JSMLoader || JSMLoader.bump != 4)
|
||||
JSMLoader = {
|
||||
|
||||
Reference in New Issue
Block a user