aboutsummaryrefslogtreecommitdiff
path: root/ext/js/data/options-util.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/data/options-util.js')
-rw-r--r--ext/js/data/options-util.js21
1 files changed, 20 insertions, 1 deletions
diff --git a/ext/js/data/options-util.js b/ext/js/data/options-util.js
index 1a7f661f..3422b773 100644
--- a/ext/js/data/options-util.js
+++ b/ext/js/data/options-util.js
@@ -466,7 +466,8 @@ class OptionsUtil {
{async: false, update: this._updateVersion14.bind(this)},
{async: false, update: this._updateVersion15.bind(this)},
{async: false, update: this._updateVersion16.bind(this)},
- {async: false, update: this._updateVersion17.bind(this)}
+ {async: false, update: this._updateVersion17.bind(this)},
+ {async: false, update: this._updateVersion18.bind(this)}
];
if (typeof targetVersion === 'number' && targetVersion < result.length) {
result.splice(targetVersion);
@@ -924,4 +925,22 @@ class OptionsUtil {
}
return options;
}
+
+ _updateVersion18(options) {
+ // Version 18 changes:
+ // general.popupTheme's 'default' value changed to 'light'
+ // general.popupOuterTheme's 'default' value changed to 'light'
+ // general.popupOuterTheme's 'auto' value changed to 'site'
+ for (const profile of options.profiles) {
+ const {general} = profile.options;
+ if (general.popupTheme === 'default') {
+ general.popupTheme = 'light';
+ }
+ switch (general.popupOuterTheme) {
+ case 'default': general.popupOuterTheme = 'light'; break;
+ case 'auto': general.popupOuterTheme = 'site'; break;
+ }
+ }
+ return options;
+ }
}