diff options
| author | Alex Yatskov <alex@foosoft.net> | 2017-01-27 20:26:44 -0800 | 
|---|---|---|
| committer | Alex Yatskov <alex@foosoft.net> | 2017-01-27 20:26:44 -0800 | 
| commit | 79194bcafc587d28c9406e8afb35c67b94bd1d34 (patch) | |
| tree | 63d22ca86cf333687e6f0e9691fdc625f60bc776 | |
| parent | d134c6b29732858ffad7a4b34d9dc90e4b4ec0fa (diff) | |
versioning fixes
| -rw-r--r-- | ext/bg/js/options.js | 2 | 
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; |