aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/options.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/options.js')
-rw-r--r--ext/bg/js/options.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js
index cc813dbf..19e028fb 100644
--- a/ext/bg/js/options.js
+++ b/ext/bg/js/options.js
@@ -69,7 +69,7 @@ function optionsVersion(options) {
targetDict[targetKey] = sourceDict[sourceKey] || targetDict[targetKey];
};
- const version = options.version || 0;
+ options.version = options.version || 0;
const fixups = [
() => {
optionsSetDefaults(options);
@@ -98,8 +98,8 @@ function optionsVersion(options) {
},
];
- if (version < fixups.length) {
- fixups[version]();
+ if (options.version < fixups.length) {
+ fixups[options.version]();
++options.version;
optionsVersion(options);
}