diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-08-28 14:30:50 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-28 14:30:50 -0400 |
commit | 87fbb3c01ccc7e14b5fa29d6126ef684ceb558a9 (patch) | |
tree | 7cdadb38bc3b03fdfeab2d79547215d7246bb71e /ext/js/background | |
parent | 74709296e557dfeab2e465f8bd53681934fe8040 (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/background')
-rw-r--r-- | ext/js/background/backend.js | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/ext/js/background/backend.js b/ext/js/background/backend.js index e293a3a7..dea67091 100644 --- a/ext/js/background/backend.js +++ b/ext/js/background/backend.js @@ -111,7 +111,6 @@ class Backend { ['getZoom', {async: true, contentScript: true, handler: this._onApiGetZoom.bind(this)}], ['getDefaultAnkiFieldTemplates', {async: false, contentScript: true, handler: this._onApiGetDefaultAnkiFieldTemplates.bind(this)}], ['getDictionaryInfo', {async: true, contentScript: true, handler: this._onApiGetDictionaryInfo.bind(this)}], - ['getDictionaryCounts', {async: true, contentScript: false, handler: this._onApiGetDictionaryCounts.bind(this)}], ['purgeDatabase', {async: true, contentScript: false, handler: this._onApiPurgeDatabase.bind(this)}], ['getMedia', {async: true, contentScript: true, handler: this._onApiGetMedia.bind(this)}], ['log', {async: false, contentScript: true, handler: this._onApiLog.bind(this)}], @@ -616,10 +615,6 @@ class Backend { return await this._dictionaryDatabase.getDictionaryInfo(); } - async _onApiGetDictionaryCounts({dictionaryNames, getTotal}) { - return await this._dictionaryDatabase.getDictionaryCounts(dictionaryNames, getTotal); - } - async _onApiPurgeDatabase() { await this._dictionaryDatabase.purge(); this._triggerDatabaseUpdated('dictionary', 'purge'); |