summaryrefslogtreecommitdiff
path: root/ext/bg/yomichan.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/yomichan.js')
-rw-r--r--ext/bg/yomichan.js11
1 files changed, 2 insertions, 9 deletions
diff --git a/ext/bg/yomichan.js b/ext/bg/yomichan.js
index 43ee8761..2e4552a1 100644
--- a/ext/bg/yomichan.js
+++ b/ext/bg/yomichan.js
@@ -19,20 +19,13 @@
class Yomichan {
constructor() {
- this.res = {
- rules: 'bg/data/rules.json',
- edict: 'bg/data/edict.csv',
- enamdict: 'bg/data/enamdict.csv',
- kanjidic: 'bg/data/kanjidic.csv'
- };
+ Handlebars.partials = Handlebars.templates;
this.translator = new Translator();
this.updateState('disabled');
chrome.runtime.onMessage.addListener(this.onMessage.bind(this));
chrome.browserAction.onClicked.addListener(this.onBrowserAction.bind(this));
-
- Handlebars.partials = Handlebars.templates;
}
onMessage(request, sender, callback) {
@@ -75,7 +68,7 @@ class Yomichan {
break;
case 'loading':
chrome.browserAction.setBadgeText({text: '...'});
- this.translator.loadData(this.res, () => this.updateState('enabled'));
+ this.translator.loadData(() => this.updateState('enabled'));
break;
}