summaryrefslogtreecommitdiff
path: root/ext/js/dictionary
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/dictionary')
-rw-r--r--ext/js/dictionary/dictionary-importer.js2
-rw-r--r--ext/js/dictionary/dictionary-worker-handler.js12
-rw-r--r--ext/js/dictionary/dictionary-worker.js2
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;
}