summaryrefslogtreecommitdiff
path: root/config.js
diff options
context:
space:
mode:
authorgirst <girst@users.noreply.github.com>2019-07-09 22:04:02 +0200
committergirst <girst@users.noreply.github.com>2019-07-09 22:06:08 +0200
commitcb644c202d9319a059dc3f96e7de66041ea18ab7 (patch)
tree99d1528e9bf08c1b396a274c47b0de578c1be1a2 /config.js
parentaa3370144d450f4671919eaed205215f27482b7f (diff)
downloadlegacywolf-cb644c202d9319a059dc3f96e7de66041ea18ab7.tar.gz
legacywolf-cb644c202d9319a059dc3f96e7de66041ea18ab7.zip
don't overwrite chrome.manifest
this hopefully makes the monkey patch update persistent. Note: instead of using FileUtils, this would be another method: const {Services} = Cu.import('resource://gre/modules/Services.jsm'); let manifest = Services.dirsvc.get('GreD', Ci.nsIFile); manifest.append('legacy.manifest');
Diffstat (limited to 'config.js')
-rw-r--r--config.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/config.js b/config.js
index fa98b6d..2514b7b 100644
--- a/config.js
+++ b/config.js
@@ -8,11 +8,9 @@ try {
"ALLOW_LEGACY_EXTENSIONS": true,
};
- let manifest = Cc['@mozilla.org/file/directory_service;1']
- .getService(Ci.nsIProperties).get('GreD', Ci.nsIFile);
- manifest.append('chrome.manifest');
+ const {FileUtils} = Cu.import('resource://gre/modules/FileUtils.jsm');
Components.manager.QueryInterface(Ci.nsIComponentRegistrar)
- .autoRegister(manifest);
+ .autoRegister(FileUtils.getFile('GreD', ['legacy.manifest']));
const {AddonManager} = Cu.import('resource://gre/modules/AddonManager.jsm');
const {BootstrapLoader} = Cu.import('chrome://legacy/content/BootstrapLoader.jsm');