This commit is contained in:
Alex Yatskov 2016-11-07 19:15:51 -08:00
parent da29797dcf
commit 5ad4782bfb
2 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@
class Database {
constructor() {
this.db = null;
this.dbVer = 6;
this.dbVer = 7;
this.entities = null;
}

View File

@ -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(() => {