summaryrefslogtreecommitdiff
path: root/ext/bg/js/yomichan.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-08-10 08:44:52 -0700
committerAlex Yatskov <alex@foosoft.net>2016-08-10 08:44:52 -0700
commit5cc989b87f671702912e28c0bce3747b6b79b87b (patch)
tree5f02fec89d585e5e773becdaea09f293c2b9d13a /ext/bg/js/yomichan.js
parent0ef6a2f6c963f11a97b62eacca7476ee4ec2c071 (diff)
Rename references of "vocab" to "term"
Diffstat (limited to 'ext/bg/js/yomichan.js')
-rw-r--r--ext/bg/js/yomichan.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/bg/js/yomichan.js b/ext/bg/js/yomichan.js
index 6aca4b5d..c6288e57 100644
--- a/ext/bg/js/yomichan.js
+++ b/ext/bg/js/yomichan.js
@@ -183,12 +183,12 @@ class Yomichan {
value = '';
break;
case 'expression':
- if (mode === 'vocab_kana' && definition.reading) {
+ if (mode === 'term_kana' && definition.reading) {
value = definition.reading;
}
break;
case 'reading':
- if (mode === 'vocab_kana') {
+ if (mode === 'term_kana') {
value = null;
}
break;
@@ -227,9 +227,9 @@ class Yomichan {
note.deckName = this.options.ankiKanjiDeck;
note.modelName = this.options.ankiKanjiModel;
} else {
- fields = this.options.ankiVocabFields;
- note.deckName = this.options.ankiVocabDeck;
- note.modelName = this.options.ankiVocabModel;
+ fields = this.options.ankiTermFields;
+ note.deckName = this.options.ankiTermDeck;
+ note.modelName = this.options.ankiTermModel;
const audio = {
kanji: definition.expression,