aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/database.js
diff options
context:
space:
mode:
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];