aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/database.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-12-23 21:59:19 -0800
committerAlex Yatskov <alex@foosoft.net>2016-12-23 21:59:19 -0800
commitb81e11f633ab9a0f41b5ab28b032b8493f25150a (patch)
tree9eb51ddb400dfeb747555e8bae8e23e7022efe36 /ext/bg/js/database.js
parent22128a948ae052592a17e9cee2a2d24cd0ebad31 (diff)
revision support
Diffstat (limited to 'ext/bg/js/database.js')
-rw-r--r--ext/bg/js/database.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/database.js b/ext/bg/js/database.js
index 7ad7d410..a21708f5 100644
--- a/ext/bg/js/database.js
+++ b/ext/bg/js/database.js
@@ -224,14 +224,14 @@ class Database {
}
let summary = null;
- const indexLoaded = (title, version, tagMeta, hasTerms, hasKanji) => {
- summary = {title, hasTerms, hasKanji, version};
+ const indexLoaded = (title, version, revision, tagMeta, hasTerms, hasKanji) => {
+ summary = {title, version, revision, hasTerms, hasKanji};
return this.db.dictionaries.where('title').equals(title).count().then(count => {
if (count > 0) {
return Promise.reject(`dictionary "${title}" is already imported`);
}
- return this.db.dictionaries.add({title, version, hasTerms, hasKanji}).then(() => {
+ return this.db.dictionaries.add({title, version, revision, hasTerms, hasKanji}).then(() => {
const rows = [];
for (const tag in tagMeta || {}) {
const meta = tagMeta[tag];