aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/translator.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-08-29 20:27:04 -0700
committerAlex Yatskov <alex@foosoft.net>2016-08-29 20:27:04 -0700
commit133abb6f585bee94fcdee23689779042e3ccfd65 (patch)
tree6093341a1368e184a6d5fcb36a698711e68f6dee /ext/bg/js/translator.js
parentc55ba3b2be267d9dc616bda1a293d136c63cd639 (diff)
.
Diffstat (limited to 'ext/bg/js/translator.js')
-rw-r--r--ext/bg/js/translator.js10
1 files changed, 3 insertions, 7 deletions
diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js
index f7dfae13..5768c3d6 100644
--- a/ext/bg/js/translator.js
+++ b/ext/bg/js/translator.js
@@ -31,13 +31,13 @@ class Translator {
return;
}
- loadJson('bg/data/rules.json').then((rules) => {
+ loadJson('bg/data/rules.json').then(rules => {
this.deinflector.setRules(rules);
return loadJson('bg/data/tags.json');
- }).then((tagMeta) => {
+ }).then(tagMeta => {
this.tagMeta = tagMeta;
return this.dictionary.existsDb();
- }).then((exists) => {
+ }).then(exists => {
this.dictionary.initDb();
if (exists) {
return Promise.resolve();
@@ -49,10 +49,6 @@ class Translator {
this.dictionary.importTermDict('bg/data/enamdict/index.json')
]);
}).then(() => {
- this.dictionary.findTerm('猫').then((result) => {
- console.log(result);
- });
-
this.loaded = true;
callback();
});