From 87fbb3c01ccc7e14b5fa29d6126ef684ceb558a9 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 28 Aug 2021 14:30:50 -0400 Subject: Dictionary worker updates (#1914) * Add support for running getDictionaryCounts via DictionaryWorker * Run dictionary integrity checks on a separate thread * Remove api.getDictionaryCounts --- ext/js/language/dictionary-worker.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/js/language/dictionary-worker.js') diff --git a/ext/js/language/dictionary-worker.js b/ext/js/language/dictionary-worker.js index 4adfdaec..92faa3dc 100644 --- a/ext/js/language/dictionary-worker.js +++ b/ext/js/language/dictionary-worker.js @@ -38,6 +38,10 @@ class DictionaryWorker { return this._invoke('deleteDictionary', {dictionaryTitle}, [], onProgress); } + getDictionaryCounts(dictionaryNames, getTotal) { + return this._invoke('getDictionaryCounts', {dictionaryNames, getTotal}, [], null); + } + // Private _invoke(action, params, transfer, onProgress, formatResult) { -- cgit v1.2.3