diff options
author | girst <girst@users.noreply.github.com> | 2019-07-09 22:04:02 +0200 |
---|---|---|
committer | girst <girst@users.noreply.github.com> | 2019-07-09 22:06:08 +0200 |
commit | cb644c202d9319a059dc3f96e7de66041ea18ab7 (patch) | |
tree | 99d1528e9bf08c1b396a274c47b0de578c1be1a2 /config.js | |
parent | aa3370144d450f4671919eaed205215f27482b7f (diff) | |
download | legacywolf-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.js | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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'); |