summaryrefslogtreecommitdiff
path: root/ext/js/display/display-audio.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/display/display-audio.js')
-rw-r--r--ext/js/display/display-audio.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/js/display/display-audio.js b/ext/js/display/display-audio.js
index bb88c89e..03966390 100644
--- a/ext/js/display/display-audio.js
+++ b/ext/js/display/display-audio.js
@@ -405,11 +405,11 @@ class DisplayAudio {
const definition = definitions[definitionIndex];
if (definition.type === 'kanji') { return null; }
- const {expressions} = definition;
- if (expressionIndex < 0 || expressionIndex >= expressions.length) { return null; }
+ const {headwords} = definition;
+ if (expressionIndex < 0 || expressionIndex >= headwords.length) { return null; }
- const {expression, reading} = expressions[expressionIndex];
- return {expression, reading};
+ const {term, reading} = headwords[expressionIndex];
+ return {expression: term, reading};
}
_getExpressionReadingKey(expression, reading) {