Fixes
This commit is contained in:
parent
da29797dcf
commit
5ad4782bfb
@ -20,7 +20,7 @@
|
|||||||
class Database {
|
class Database {
|
||||||
constructor() {
|
constructor() {
|
||||||
this.db = null;
|
this.db = null;
|
||||||
this.dbVer = 6;
|
this.dbVer = 7;
|
||||||
this.entities = null;
|
this.entities = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,9 +62,9 @@ class Translator {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return Promise.all([
|
return Promise.all([
|
||||||
this.database.importDictionary('bg/data/edict/index.json', bankCallback),
|
this.database.importDictionary(chrome.extension.getURL('bg/data/edict/index.json'), bankCallback),
|
||||||
this.database.importDictionary('bg/data/enamdict/index.json', bankCallback),
|
this.database.importDictionary(chrome.extension.getURL('bg/data/enamdict/index.json'), bankCallback),
|
||||||
this.database.importDictionary('bg/data/kanjidic/index.json', bankCallback),
|
this.database.importDictionary(chrome.extension.getURL('bg/data/kanjidic/index.json'), bankCallback),
|
||||||
]).then(() => {
|
]).then(() => {
|
||||||
return this.database.seal();
|
return this.database.seal();
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user