diff options
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/mixed/js/dictionary-data-util.js | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/mixed/js/dictionary-data-util.js b/ext/mixed/js/dictionary-data-util.js index 761bfc1c..1834b5f3 100644 --- a/ext/mixed/js/dictionary-data-util.js +++ b/ext/mixed/js/dictionary-data-util.js @@ -23,7 +23,8 @@ class DictionaryDataUtil {          const allExpressions = new Set();          const allReadings = new Set(); -        for (const {expression, reading, pitches: expressionPitches} of definition.expressions) { +        for (let {expression, reading, pitches: expressionPitches} of definition.expressions) { +            if (reading.length === 0) { reading = expression; }              allExpressions.add(expression);              allReadings.add(reading);  |