summaryrefslogtreecommitdiff
path: root/config.js
diff options
context:
space:
mode:
authorgirst <girst@users.noreply.github.com>2019-06-24 16:06:59 +0200
committergirst <girst@users.noreply.github.com>2019-06-24 16:07:38 +0200
commit3644b819d79db6be6cebb8337908ce184ecad0c1 (patch)
tree37c0958003e58da8b4fa8ca7898d8127193ecee1 /config.js
parent11894000eedf0b0925d756c6a12003e4abd00b6f (diff)
downloadlegacywolf-3644b819d79db6be6cebb8337908ce184ecad0c1.tar.gz
legacywolf-3644b819d79db6be6cebb8337908ce184ecad0c1.zip
remove boot.jsm
Diffstat (limited to 'config.js')
-rw-r--r--config.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/config.js b/config.js
index 35e6bbf..e568b52 100644
--- a/config.js
+++ b/config.js
@@ -9,5 +9,10 @@ try {
"ALLOW_LEGACY_EXTENSIONS": true,
};
- Cu.import('chrome://legacy/content/boot.jsm'); // engage the bootstrap loader
-} catch(ex) {}
+ // engage the bootstrap loader:
+ const {AddonManager} = Cu.import('resource://gre/modules/AddonManager.jsm');
+ const {BootstrapLoader} = Cu.import('chrome://legacy/content/BootstrapLoader.jsm');
+ AddonManager.addExternalExtensionLoader(BootstrapLoader);
+} catch(ex) {
+ Components.utils.reportError(ex.message);
+}