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.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/bg/js/dictionary.js b/ext/bg/js/dictionary.js
index 624fe15e..0c5e4c4a 100644
--- a/ext/bg/js/dictionary.js
+++ b/ext/bg/js/dictionary.js
@@ -59,15 +59,15 @@ class Dictionary {
findKanji(kanji) {
const results = [];
- return this.db.kanji.where('c').equals(kanji).each(row => {
+ return this.db.kanji.where('character').equals(kanji).each(row => {
results.push({
- character: row.c,
- onyomi: row.o.split(' '),
- kunyomi: row.k.split(' '),
- tags: row.t.split(' '),
- glossary: row.m
+ character: row.character,
+ onyomi: row.onyomi.split(' '),
+ kunyomi: row.kunyomi.split(' '),
+ tags: row.tags.split(' '),
+ glossary: row.meanings
});
- });
+ }).then(() => results);
}
getEntities(tags) {