aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/backend.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/backend.js')
-rw-r--r--ext/bg/js/backend.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js
index f61e9742..e8c9452c 100644
--- a/ext/bg/js/backend.js
+++ b/ext/bg/js/backend.js
@@ -17,7 +17,7 @@
*/
-window.yomichan_backend = new class {
+class Backend {
constructor() {
this.translator = new Translator();
this.anki = new AnkiNull();
@@ -113,6 +113,7 @@ window.yomichan_backend = new class {
return true;
}
-};
+}
+window.yomichan_backend = new Backend();
window.yomichan_backend.prepare();