aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/yomichan.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-01-07 20:48:59 -0800
committerAlex Yatskov <alex@foosoft.net>2017-01-07 20:48:59 -0800
commitf7d7b1bd84a460c4bc602576495ec4c0fe357acb (patch)
treedb6dc564ad43c4de7a3b2343fc48a25fdc0260a0 /ext/bg/js/yomichan.js
parent786ef851c908f19c065f6ddd7faa124cc018c50f (diff)
add dictionary formatting field
Diffstat (limited to 'ext/bg/js/yomichan.js')
-rw-r--r--ext/bg/js/yomichan.js4
1 files changed, 1 insertions, 3 deletions
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;