summaryrefslogtreecommitdiff
path: root/ext/bg/js/util.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-01-26 20:22:52 -0800
committerAlex Yatskov <alex@foosoft.net>2017-01-26 20:22:52 -0800
commit34ea9979abf1474eaaa581c2c32406c255c5f61c (patch)
treef81b3bd0a6190d66dba492e07d9be51ae2ac11ed /ext/bg/js/util.js
parentda33d00e45ee3a028886fe90fca329282731aaa5 (diff)
wip
Diffstat (limited to 'ext/bg/js/util.js')
-rw-r--r--ext/bg/js/util.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/bg/js/util.js b/ext/bg/js/util.js
index 253fcd0f..108c88e7 100644
--- a/ext/bg/js/util.js
+++ b/ext/bg/js/util.js
@@ -201,7 +201,7 @@ function sortTags(tags) {
});
}
-function formatField(field, definition, mode, html) {
+function formatField(field, definition, mode, options) {
const markers = [
'audio',
'character',
@@ -221,7 +221,8 @@ function formatField(field, definition, mode, html) {
const data = {
marker,
definition,
- html,
+ group: options.general.groupResults,
+ html: options.anki.htmlCards,
modeTermKanji: mode === 'term_kanji',
modeTermKana: mode === 'term_kana',
modeKanji: mode === 'kanji'