diff options
Diffstat (limited to 'ext/bg/js/util.js')
-rw-r--r-- | ext/bg/js/util.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js index 6999cae3..bde174c8 100644 --- a/ext/bg/js/util.js +++ b/ext/bg/js/util.js @@ -256,7 +256,7 @@ function optionsSave(options) { * Dictionary */ -function dictEnabled(options) { +function dictEnabledSet(options) { const dictionaries = {}; for (const title in options.dictionaries) { const dictionary = options.dictionaries[title]; @@ -268,6 +268,16 @@ function dictEnabled(options) { return dictionaries; } +function dictConfigured(options) { + for (const title in options.dictionaries) { + if (options.dictionaries[title].enabled) { + return true; + } + } + + return false; +} + function dictRowsSort(rows, options) { return rows.sort((ra, rb) => { const pa = (options.dictionaries[ra.title] || {}).priority || 0; |