diff options
Diffstat (limited to 'ext/js/data/options-util.js')
| -rw-r--r-- | ext/js/data/options-util.js | 12 | 
1 files changed, 11 insertions, 1 deletions
| diff --git a/ext/js/data/options-util.js b/ext/js/data/options-util.js index a163580f..8c50493a 100644 --- a/ext/js/data/options-util.js +++ b/ext/js/data/options-util.js @@ -468,7 +468,8 @@ class OptionsUtil {              {async: false, update: this._updateVersion16.bind(this)},              {async: false, update: this._updateVersion17.bind(this)},              {async: false, update: this._updateVersion18.bind(this)}, -            {async: false, update: this._updateVersion19.bind(this)} +            {async: false, update: this._updateVersion19.bind(this)}, +            {async: false, update: this._updateVersion20.bind(this)}          ];          if (typeof targetVersion === 'number' && targetVersion < result.length) {              result.splice(targetVersion); @@ -975,4 +976,13 @@ class OptionsUtil {          }          return options;      } + +    _updateVersion20(options) { +        // Version 20 changes: +        //  Added anki.downloadTimeout. +        for (const profile of options.profiles) { +            profile.options.anki.downloadTimeout = 0; +        } +        return options; +    }  } |