aboutsummaryrefslogtreecommitdiff
path: root/ext/js/language/dictionary-worker-main.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-08-28 14:22:16 -0400
committerGitHub <noreply@github.com>2021-08-28 14:22:16 -0400
commit74709296e557dfeab2e465f8bd53681934fe8040 (patch)
tree7b5603ad6da96697edc8934159a3d7b42d466a66 /ext/js/language/dictionary-worker-main.js
parent93f193c89eea381046f00f3a586beb66b2de0b19 (diff)
Dictionary database worker refactoring (#1913)
* Rename DictionaryWorker => DictionaryWorkerHandler * Rename var * Rename file * Simplify * Rename DictionaryDatabaseModifier => DictionaryWorker * Rename dictionary-database-modifier.js => dictionary-worker.js
Diffstat (limited to 'ext/js/language/dictionary-worker-main.js')
-rw-r--r--ext/js/language/dictionary-worker-main.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/js/language/dictionary-worker-main.js b/ext/js/language/dictionary-worker-main.js
index e113b568..fbeaea1e 100644
--- a/ext/js/language/dictionary-worker-main.js
+++ b/ext/js/language/dictionary-worker-main.js
@@ -16,7 +16,7 @@
*/
/* global
- * DictionaryWorker
+ * DictionaryWorkerHandler
*/
self.importScripts(
@@ -27,15 +27,15 @@ self.importScripts(
'/js/general/cache-map.js',
'/js/language/dictionary-database.js',
'/js/language/dictionary-importer.js',
- '/js/language/dictionary-worker.js',
+ '/js/language/dictionary-worker-handler.js',
'/js/language/dictionary-worker-media-loader.js',
'/js/media/media-util.js'
);
(() => {
try {
- const dictionaryImporterWorker = new DictionaryWorker();
- dictionaryImporterWorker.prepare();
+ const dictionaryWorkerHandler = new DictionaryWorkerHandler();
+ dictionaryWorkerHandler.prepare();
} catch (e) {
log.error(e);
}