diff options
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | config.js | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -22,4 +22,4 @@ trademark; you are not granted any right to distribute modified binary versions of the software containing the official branding. (C) 2018-2019 Mozilla, MPL v2 -(C) 2019-2022 //gir.st/, MPL v2 +(C) 2019-2023 //gir.st/, MPL v2 @@ -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'); |