aboutsummaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-11-07 08:24:39 -0800
committerAlex Yatskov <alex@foosoft.net>2016-11-07 08:24:39 -0800
commitc11b24cb37948c9cf7dc91c97cdc01ba65db875b (patch)
treee619fdbad565f23b8041d8d6af3f87bbdf8328cd /ext/bg
parent8c22f53f3e770840316b3fd2e840ffe06771a8d4 (diff)
Cleanup
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/js/dictionary.js2
-rw-r--r--ext/bg/js/translator.js6
2 files changed, 4 insertions, 4 deletions
diff --git a/ext/bg/js/dictionary.js b/ext/bg/js/dictionary.js
index 7a95561c..a7bca2f1 100644
--- a/ext/bg/js/dictionary.js
+++ b/ext/bg/js/dictionary.js
@@ -153,7 +153,7 @@ class Dictionary {
});
}
- importDb(indexUrl, callback) {
+ importDictionary(indexUrl, callback) {
if (this.db === null) {
return Promise.reject('database not initialized');
}
diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js
index 8e0c522f..0a0a6109 100644
--- a/ext/bg/js/translator.js
+++ b/ext/bg/js/translator.js
@@ -62,9 +62,9 @@ class Translator {
};
return Promise.all([
- this.dictionary.importDb('bg/data/edict/index.json', bankCallback),
- this.dictionary.importDb('bg/data/enamdict/index.json', bankCallback),
- this.dictionary.importDb('bg/data/kanjidic/index.json', bankCallback),
+ this.dictionary.importDictionary('bg/data/edict/index.json', bankCallback),
+ this.dictionary.importDictionary('bg/data/enamdict/index.json', bankCallback),
+ this.dictionary.importDictionary('bg/data/kanjidic/index.json', bankCallback),
]).then(() => {
return this.dictionary.sealDb();
}).then(() => {