diff options
author | girst <girst@users.noreply.github.com> | 2020-08-22 19:11:26 +0200 |
---|---|---|
committer | girst <girst@users.noreply.github.com> | 2020-08-22 19:11:26 +0200 |
commit | 3aafe733dfaae7c4d4304f80d4df01780e989e80 (patch) | |
tree | 91d34955acb9db1513f17fc78827e23278f6a574 /config.js | |
parent | 54655696e65acc67ec73f01932fa2ddb1e236a78 (diff) | |
download | legacywolf-3aafe733dfaae7c4d4304f80d4df01780e989e80.tar.gz legacywolf-3aafe733dfaae7c4d4304f80d4df01780e989e80.zip |
recreate all properties of AddonSettings automatically
Looks like all the settings continued to work by accident.
Note: out of scope for LegacyFox, but sideloading from anywhere can be
re-enabled by setting `SCOPES_SIDELOAD: 31 // AddonManager.SCOPE_ALL`.
Diffstat (limited to 'config.js')
-rw-r--r-- | config.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -4,11 +4,12 @@ try { Xdb.XPIDatabase.isDisabledLegacy = (addon) => false; Xdb.XPIDatabase['SIGNED_TYPES'].clear(); Xdb.AddonSettings = { + ...Object.fromEntries(Object.getOwnPropertyNames(Xdb.AddonSettings) + .map(e => [e, Xdb.AddonSettings[e]])), "REQUIRE_SIGNING": false, "LANGPACKS_REQUIRE_SIGNING": false, "ALLOW_LEGACY_EXTENSIONS": true, // <=fx73 "EXPERIMENTS_ENABLED": true, // >=fx74 - "DEFAULT_THEME_ID": "default-theme@mozilla.org", }; const {FileUtils} = Cu.import('resource://gre/modules/FileUtils.jsm'); |