summaryrefslogtreecommitdiff
path: root/ext/js/pages/settings
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-08-28 14:30:50 -0400
committerGitHub <noreply@github.com>2021-08-28 14:30:50 -0400
commit87fbb3c01ccc7e14b5fa29d6126ef684ceb558a9 (patch)
tree7cdadb38bc3b03fdfeab2d79547215d7246bb71e /ext/js/pages/settings
parent74709296e557dfeab2e465f8bd53681934fe8040 (diff)
Dictionary worker updates (#1914)
* Add support for running getDictionaryCounts via DictionaryWorker * Run dictionary integrity checks on a separate thread * Remove api.getDictionaryCounts
Diffstat (limited to 'ext/js/pages/settings')
-rw-r--r--ext/js/pages/settings/dictionary-controller.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/pages/settings/dictionary-controller.js b/ext/js/pages/settings/dictionary-controller.js
index 2a44f9ad..21bf7d5f 100644
--- a/ext/js/pages/settings/dictionary-controller.js
+++ b/ext/js/pages/settings/dictionary-controller.js
@@ -567,7 +567,7 @@ class DictionaryController {
const token = this._databaseStateToken;
const dictionaryTitles = this._dictionaryEntries.map(({dictionaryTitle}) => dictionaryTitle);
- const {counts, total} = await yomichan.api.getDictionaryCounts(dictionaryTitles, true);
+ const {counts, total} = await new DictionaryWorker().getDictionaryCounts(dictionaryTitles, true);
if (this._databaseStateToken !== token) { return; }
for (let i = 0, ii = Math.min(counts.length, this._dictionaryEntries.length); i < ii; ++i) {