diff options
Diffstat (limited to 'ext/bg')
-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 d9bd76c5..59eb9269 100644 --- a/ext/bg/js/util.js +++ b/ext/bg/js/util.js @@ -191,6 +191,21 @@ function optionsVersion(options) { options.dictionaries[title].enabled = true; } } + }, + () => { + 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; + } + } } ]; |