From 3644b819d79db6be6cebb8337908ce184ecad0c1 Mon Sep 17 00:00:00 2001 From: girst Date: Mon, 24 Jun 2019 16:06:59 +0200 Subject: remove boot.jsm --- config.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'config.js') 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); +} -- cgit v1.2.3