aboutsummaryrefslogtreecommitdiff
path: root/ext/js/dictionary/dictionary-worker-handler.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/dictionary/dictionary-worker-handler.js')
-rw-r--r--ext/js/dictionary/dictionary-worker-handler.js12
1 files changed, 6 insertions, 6 deletions
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();
}
}