From 5ad4782bfb6db09e55fffba6057d42c1022d930e Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Mon, 7 Nov 2016 19:15:51 -0800 Subject: Fixes --- ext/bg/js/database.js | 2 +- ext/bg/js/translator.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/bg/js/database.js b/ext/bg/js/database.js index 19e3228f..7cf92c44 100644 --- a/ext/bg/js/database.js +++ b/ext/bg/js/database.js @@ -20,7 +20,7 @@ class Database { constructor() { this.db = null; - this.dbVer = 6; + this.dbVer = 7; this.entities = null; } 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(() => { -- cgit v1.2.3