diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2024-02-19 07:30:17 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-19 12:30:17 +0000 |
commit | 2da866f982930c76d2317a3be426410683ecf5a2 (patch) | |
tree | e77ce545177ba398068cb63037096a56dea04e2c /ext/js/dictionary | |
parent | 65fa65fc7765bc9a6557d3ce6f8bdcef5b5e0cf7 (diff) |
Update eslint rules (#710)
Diffstat (limited to 'ext/js/dictionary')
-rw-r--r-- | ext/js/dictionary/dictionary-importer.js | 2 | ||||
-rw-r--r-- | ext/js/dictionary/dictionary-worker-handler.js | 12 | ||||
-rw-r--r-- | ext/js/dictionary/dictionary-worker.js | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/ext/js/dictionary/dictionary-importer.js b/ext/js/dictionary/dictionary-importer.js index eed7d9dd..fbfe40d0 100644 --- a/ext/js/dictionary/dictionary-importer.js +++ b/ext/js/dictionary/dictionary-importer.js @@ -187,7 +187,7 @@ export class DictionaryImporter { media: {total: media.length} }; const summary = this._createSummary(dictionaryTitle, version, index, {prefixWildcardsSupported, counts}); - dictionaryDatabase.bulkAdd('dictionaries', [summary], 0, 1); + await dictionaryDatabase.bulkAdd('dictionaries', [summary], 0, 1); // Add data /** @type {Error[]} */ diff --git a/ext/js/dictionary/dictionary-worker-handler.js b/ext/js/dictionary/dictionary-worker-handler.js index 1c11be93..4e263c21 100644 --- a/ext/js/dictionary/dictionary-worker-handler.js +++ b/ext/js/dictionary/dictionary-worker-handler.js @@ -41,13 +41,13 @@ export class DictionaryWorkerHandler { const {action, params} = event.data; switch (action) { case 'importDictionary': - this._onMessageWithProgress(params, this._importDictionary.bind(this)); + void this._onMessageWithProgress(params, this._importDictionary.bind(this)); break; case 'deleteDictionary': - this._onMessageWithProgress(params, this._deleteDictionary.bind(this)); + void this._onMessageWithProgress(params, this._deleteDictionary.bind(this)); break; case 'getDictionaryCounts': - this._onMessageWithProgress(params, this._getDictionaryCounts.bind(this)); + void this._onMessageWithProgress(params, this._getDictionaryCounts.bind(this)); break; case 'getImageDetails.response': this._mediaLoader.handleMessage(params); @@ -95,7 +95,7 @@ export class DictionaryWorkerHandler { errors: errors.map((error) => ExtensionError.serialize(error)) }; } finally { - dictionaryDatabase.close(); + void dictionaryDatabase.close(); } } @@ -109,7 +109,7 @@ export class DictionaryWorkerHandler { try { return await dictionaryDatabase.deleteDictionary(dictionaryTitle, 1000, onProgress); } finally { - dictionaryDatabase.close(); + void dictionaryDatabase.close(); } } @@ -122,7 +122,7 @@ export class DictionaryWorkerHandler { try { return await dictionaryDatabase.getDictionaryCounts(dictionaryNames, getTotal); } finally { - dictionaryDatabase.close(); + void dictionaryDatabase.close(); } } diff --git a/ext/js/dictionary/dictionary-worker.js b/ext/js/dictionary/dictionary-worker.js index 7a9e1114..bd6d5345 100644 --- a/ext/js/dictionary/dictionary-worker.js +++ b/ext/js/dictionary/dictionary-worker.js @@ -126,7 +126,7 @@ export class DictionaryWorker { { const {worker} = details; if (worker === null) { return; } - this._onMessageGetImageDetails(params, worker); + void this._onMessageGetImageDetails(params, worker); } break; } |