diff options
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/bg/js/util.js | 15 | 
1 files changed, 15 insertions, 0 deletions
| diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js index 23173d3f..37fb0843 100644 --- a/ext/bg/js/util.js +++ b/ext/bg/js/util.js @@ -172,6 +172,21 @@ function optionsVersion(options) {              fixupFields(options.anki.terms.fields);              fixupFields(options.anki.kanji.fields); +        }, +        () => { +            let hasEnabledDict = false; +            for (const title in options.dictionaries) { +                if (options.dictionaries[title].enabled) { +                    hasEnabledDict = true; +                    break; +                } +            } + +            if (!hasEnabledDict) { +                for (const title in options.dictionaries) { +                    options.dictionaries[title].enabled = true; +                } +            }          }      ]; |