From f7d7b1bd84a460c4bc602576495ec4c0fe357acb Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sat, 7 Jan 2017 20:48:59 -0800 Subject: add dictionary formatting field --- ext/bg/js/options-form.js | 2 ++ ext/bg/js/yomichan.js | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/bg/js') diff --git a/ext/bg/js/options-form.js b/ext/bg/js/options-form.js index a8715ed8..957f4ce5 100644 --- a/ext/bg/js/options-form.js +++ b/ext/bg/js/options-form.js @@ -324,6 +324,7 @@ function modelIdToMarkers(id) { return { 'anki-term-model': [ 'audio', + 'dictionary', 'expression', 'expression-furigana', 'glossary', @@ -335,6 +336,7 @@ function modelIdToMarkers(id) { ], 'anki-kanji-model': [ 'character', + 'dictionary', 'glossary', 'glossary-list', 'kunyomi', diff --git a/ext/bg/js/yomichan.js b/ext/bg/js/yomichan.js index ef80f16c..f04e120c 100644 --- a/ext/bg/js/yomichan.js +++ b/ext/bg/js/yomichan.js @@ -124,6 +124,7 @@ class Yomichan { const markers = [ 'audio', 'character', + 'dictionary', 'expression', 'expression-furigana', 'glossary', @@ -139,9 +140,6 @@ class Yomichan { for (const marker of markers) { let value = definition[marker] || null; switch (marker) { - case 'audio': - value = ''; - break; case 'expression': if (mode === 'term_kana' && definition.reading) { value = definition.reading; -- cgit v1.2.3