diff options
author | girst <girst@users.noreply.github.com> | 2019-06-24 16:06:59 +0200 |
---|---|---|
committer | girst <girst@users.noreply.github.com> | 2019-06-24 16:07:38 +0200 |
commit | 3644b819d79db6be6cebb8337908ce184ecad0c1 (patch) | |
tree | 37c0958003e58da8b4fa8ca7898d8127193ecee1 /config.js | |
parent | 11894000eedf0b0925d756c6a12003e4abd00b6f (diff) | |
download | legacywolf-3644b819d79db6be6cebb8337908ce184ecad0c1.tar.gz legacywolf-3644b819d79db6be6cebb8337908ce184ecad0c1.zip |
remove boot.jsm
Diffstat (limited to 'config.js')
-rw-r--r-- | config.js | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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); +} |