summaryrefslogtreecommitdiff
path: root/config.js
diff options
context:
space:
mode:
authorgirst <girst@users.noreply.github.com>2020-08-22 19:11:26 +0200
committergirst <girst@users.noreply.github.com>2020-08-22 19:11:26 +0200
commit3aafe733dfaae7c4d4304f80d4df01780e989e80 (patch)
tree91d34955acb9db1513f17fc78827e23278f6a574 /config.js
parent54655696e65acc67ec73f01932fa2ddb1e236a78 (diff)
downloadlegacywolf-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.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/config.js b/config.js
index 3fc8f1b..2dd7dba 100644
--- a/config.js
+++ b/config.js
@@ -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');