summaryrefslogtreecommitdiff
path: root/ext/bg/js/dictionary.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-09-11 12:29:18 -0700
committerAlex Yatskov <alex@foosoft.net>2016-09-11 12:29:18 -0700
commitd5ea03171ea997d6734e6d31197c7f233fff7084 (patch)
treef10dbfbc9868f5b9aaae2cefb0bbbcf3a56e4514 /ext/bg/js/dictionary.js
parent1ac14cd633b3a99a3dd8ec8d0ec29158077b3798 (diff)
Working with IndexDb
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) {