aboutsummaryrefslogtreecommitdiff
path: root/ext/fg/js/frontend.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-08-13 20:50:43 -0700
committerAlex Yatskov <alex@foosoft.net>2017-08-13 20:50:43 -0700
commita202817b987e0af82607d814f775bde26947747a (patch)
tree1035dbe2acaf395910a59f0b9cead3327e636df2 /ext/fg/js/frontend.js
parent3ca28a93746ed0860bf19ede83e3e9bac979bfb5 (diff)
wip
Diffstat (limited to 'ext/fg/js/frontend.js')
-rw-r--r--ext/fg/js/frontend.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js
index de5fa953..005139e6 100644
--- a/ext/fg/js/frontend.js
+++ b/ext/fg/js/frontend.js
@@ -17,7 +17,7 @@
*/
-window.yomichan_frontend = new class {
+class Frontend {
constructor() {
this.popup = new Popup();
this.popupTimer = null;
@@ -121,7 +121,7 @@ window.yomichan_frontend = new class {
}
onResize() {
- this.onSearchClear();
+ this.searchClear();
}
onBgMessage(action, params, sender, callback) {
@@ -255,6 +255,7 @@ window.yomichan_frontend = new class {
this.lastTextSource = null;
}
-}();
+}
+window.yomichan_frontend = new Frontend();
window.yomichan_frontend.prepare();