diff options
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | config.js | 11 |
2 files changed, 4 insertions, 9 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-2020 //gir.st/, MPL v2 +(C) 2019-2022 //gir.st/, MPL v2 @@ -1,13 +1,8 @@ // keep this comment try { - let Xdb = Cu.import('resource://gre/modules/addons/XPIDatabase.jsm', {}); - Xdb.XPIDatabase.isDisabledLegacy = (addon) => false; - Xdb.AddonSettings = { - ...Object.fromEntries(Object.getOwnPropertyNames(Xdb.AddonSettings) - .map(e => [e, Xdb.AddonSettings[e]])), - "REQUIRE_SIGNING": false, - "ALLOW_LEGACY_EXTENSIONS": true, // <=fx73 - }; + let {XPIDatabase} = Cu.import('resource://gre/modules/addons/XPIDatabase.jsm', {}); + XPIDatabase.isDisabledLegacy = (addon) => false; + XPIDatabase.mustSign = (aType) => false; const {FileUtils} = Cu.import('resource://gre/modules/FileUtils.jsm'); Components.manager.QueryInterface(Ci.nsIComponentRegistrar) |