summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README2
-rw-r--r--config.js3
2 files changed, 3 insertions, 2 deletions
diff --git a/README b/README
index 8fcc300..7877dc0 100644
--- a/README
+++ b/README
@@ -8,8 +8,6 @@ Monkeypatching Firefox Quantum to run VimFx
2. Install VimFx from https://github.com/akhodakivskiy/VimFx/releases
== Notes ==
- * set `xpinstall.signatures.required;false` to downgrade the error message
- that unsigned addons were supposedly disabled in about:config to a warning.
* Users of firefox-esr on debian need to use the following command:
`make DESTDIR=/usr/lib/firefox-esr install`
* BootstrapLoader.jsm, RDFDataSource.jsm, RDFManifestConverter.jsm from their
diff --git a/config.js b/config.js
index d009577..210e7b7 100644
--- a/config.js
+++ b/config.js
@@ -18,6 +18,9 @@ try {
const {AddonManager} = Cu.import('resource://gre/modules/AddonManager.jsm');
const {BootstrapLoader} = Cu.import('resource://legacy/BootstrapLoader.jsm');
AddonManager.addExternalExtensionLoader(BootstrapLoader);
+
+ const {Services} = Cu.import('resource://gre/modules/Services.jsm');
+ Services.prefs.setBoolPref('xpinstall.signatures.required', false);
} catch(ex) {
Components.utils.reportError(ex.message);
}