summaryrefslogtreecommitdiff
path: root/ext/js/language/dictionary-worker-main.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/language/dictionary-worker-main.js')
-rw-r--r--ext/js/language/dictionary-worker-main.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/js/language/dictionary-worker-main.js b/ext/js/language/dictionary-worker-main.js
index 6d2386aa..8ae283b8 100644
--- a/ext/js/language/dictionary-worker-main.js
+++ b/ext/js/language/dictionary-worker-main.js
@@ -19,11 +19,14 @@
import {log} from '../core.js';
import {DictionaryWorkerHandler} from './dictionary-worker-handler.js';
-(() => {
+/** Entry point. */
+function main() {
try {
const dictionaryWorkerHandler = new DictionaryWorkerHandler();
dictionaryWorkerHandler.prepare();
} catch (e) {
log.error(e);
}
-})();
+}
+
+main();