summaryrefslogtreecommitdiff
path: root/ext/bg/js/dictionary.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/dictionary.js')
-rw-r--r--ext/bg/js/dictionary.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/bg/js/dictionary.js b/ext/bg/js/dictionary.js
index 5859350b..008bc483 100644
--- a/ext/bg/js/dictionary.js
+++ b/ext/bg/js/dictionary.js
@@ -131,7 +131,7 @@ class Dictionary {
});
}
- getNames() {
+ getInfo() {
if (this.db === null) {
return Promise.reject('database not initialized');
}
@@ -144,8 +144,8 @@ class Dictionary {
return Promise.reject('database not initialized');
}
- const indexLoaded = (dictionary, version, entities) => {
- return this.db.dictionaries.add({dictionary, version}).then(() => {
+ const indexLoaded = (dictionary, version, entities, hasTerms, hasKanji) => {
+ return this.db.dictionaries.add({dictionary, version, hasTerms, hasKanji}).then(() => {
this.entities = entities || {};
const rows = [];
@@ -161,7 +161,7 @@ class Dictionary {
});
};
- const termsLoaded = (dictionary, version, entries, total, current) => {
+ const termsLoaded = (dictionary, entries, total, current) => {
const rows = [];
for (const [expression, reading, tags, ...glossary] of entries) {
rows.push({
@@ -180,7 +180,7 @@ class Dictionary {
});
};
- const kanjiLoaded = (dictionary, version, entries, total, current) => {
+ const kanjiLoaded = (dictionary, entries, total, current) => {
const rows = [];
for (const [character, onyomi, kunyomi, tags, ...meanings] of entries) {
rows.push({