diff --git a/common/components/protocols.js b/common/components/protocols.js index 42ef14de..20792f5a 100644 --- a/common/components/protocols.js +++ b/common/components/protocols.js @@ -116,6 +116,8 @@ function Dactyl() { this.pages = {}; Cu.import("resource://dactyl/bootstrap.jsm"); + if (!JSMLoader.initialized) + JSMLoader.init(); JSMLoader.load("base.jsm", global); require(global, "config"); require(global, "services"); diff --git a/common/modules/bootstrap.jsm b/common/modules/bootstrap.jsm index b890dff1..1d2a3110 100644 --- a/common/modules/bootstrap.jsm +++ b/common/modules/bootstrap.jsm @@ -28,6 +28,7 @@ if (!JSMLoader || JSMLoader.bump != 3) storage: storage, suffix: "", init: function init(suffix) { + this.initialized = true; this.suffix = suffix || ""; this.storage.set("dactyl.JSMLoader", this);