aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;