aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-01-27 20:26:44 -0800
committerAlex Yatskov <alex@foosoft.net>2017-01-27 20:26:44 -0800
commit79194bcafc587d28c9406e8afb35c67b94bd1d34 (patch)
tree63d22ca86cf333687e6f0e9691fdc625f60bc776 /ext/bg/js
parentd134c6b29732858ffad7a4b34d9dc90e4b4ec0fa (diff)
versioning fixes
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/options.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js
index cd415d51..eb49d2ab 100644
--- a/ext/bg/js/options.js
+++ b/ext/bg/js/options.js
@@ -68,7 +68,7 @@ function optionsSetDefaults(options) {
function optionsVersion(options) {
const copy = (targetDict, targetKey, sourceDict, sourceKey) => {
- targetDict[targetKey] = sourceDict[sourceKey] || targetDict[targetKey];
+ targetDict[targetKey] = sourceDict.hasOwnProperty(sourceKey) ? sourceDict[sourceKey] : targetDict[targetKey];
};
options.version = options.version || 0;