aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/options.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-01-14 20:38:11 -0800
committerAlex Yatskov <alex@foosoft.net>2017-01-14 20:38:11 -0800
commit6ad860bd728d8cca8f30ef83c34bdba8801f0238 (patch)
tree9c3d70fdc12face72b68a217fe5d22378b31963f /ext/bg/js/options.js
parent8fe82573cc456fe1256989e0c3e524590a1a0acf (diff)
WIP
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);
}