aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/translator.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-11-07 19:15:51 -0800
committerAlex Yatskov <alex@foosoft.net>2016-11-07 19:15:51 -0800
commit5ad4782bfb6db09e55fffba6057d42c1022d930e (patch)
tree574788c414c187586c34e92c0732672a6e6a403d /ext/bg/js/translator.js
parentda29797dcf017e23e09ca6288e81899d12b8c9c2 (diff)
Fixes
Diffstat (limited to 'ext/bg/js/translator.js')
-rw-r--r--ext/bg/js/translator.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js
index c33a0ea6..486740c0 100644
--- a/ext/bg/js/translator.js
+++ b/ext/bg/js/translator.js
@@ -62,9 +62,9 @@ class Translator {
};
return Promise.all([
- this.database.importDictionary('bg/data/edict/index.json', bankCallback),
- this.database.importDictionary('bg/data/enamdict/index.json', bankCallback),
- this.database.importDictionary('bg/data/kanjidic/index.json', bankCallback),
+ this.database.importDictionary(chrome.extension.getURL('bg/data/edict/index.json'), bankCallback),
+ this.database.importDictionary(chrome.extension.getURL('bg/data/enamdict/index.json'), bankCallback),
+ this.database.importDictionary(chrome.extension.getURL('bg/data/kanjidic/index.json'), bankCallback),
]).then(() => {
return this.database.seal();
}).then(() => {