diff options
author | girst <girst@users.noreply.github.com> | 2023-07-01 12:08:57 +0200 |
---|---|---|
committer | girst <girst@users.noreply.github.com> | 2023-07-02 11:16:26 +0200 |
commit | 79ef33ee7354f59451c80cedd3eac63bc2e36be4 (patch) | |
tree | b206683232f5d340eb1c3143d1b343bd1bc77377 /config.js | |
parent | c2ebaa3a942180370e9318661ceacf4bae55560c (diff) | |
download | legacywolf-79ef33ee7354f59451c80cedd3eac63bc2e36be4.tar.gz legacywolf-79ef33ee7354f59451c80cedd3eac63bc2e36be4.zip |
Make compatible with Firefox 116
regressed-by: https://bugzil.la/920187
Diffstat (limited to 'config.js')
-rw-r--r-- | config.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4,9 +4,9 @@ try { XPIDatabase.isDisabledLegacy = (addon) => false; XPIDatabase.mustSign = (aType) => false; - const {FileUtils} = Cu.import('resource://gre/modules/FileUtils.jsm'); - Components.manager.QueryInterface(Ci.nsIComponentRegistrar) - .autoRegister(FileUtils.getFile('GreD', ['legacy.manifest'])); + let manifest = Services.dirsvc.get('GreD', Ci.nsIFile); + manifest.append('legacy.manifest'); + Components.manager.QueryInterface(Ci.nsIComponentRegistrar).autoRegister(manifest); const {AddonManager} = Cu.import('resource://gre/modules/AddonManager.jsm'); const {BootstrapLoader} = Cu.import('resource://legacy/BootstrapLoader.jsm'); |