diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-08-22 13:10:50 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-22 13:10:50 -0400 |
commit | e9c540a0b9a13b2ff4a77d76928682b45f1968d5 (patch) | |
tree | 55e11a2277e10655a554941ff2a9898f7a272ffe /ext/mixed/js | |
parent | cc9481bd38c5921d67c55e9ba928b33ca40c93dd (diff) |
Fix error during pitch accent info generation for kanji data (#744)
Diffstat (limited to 'ext/mixed/js')
-rw-r--r-- | ext/mixed/js/dictionary-data-util.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/mixed/js/dictionary-data-util.js b/ext/mixed/js/dictionary-data-util.js index 65ad51a1..72c28172 100644 --- a/ext/mixed/js/dictionary-data-util.js +++ b/ext/mixed/js/dictionary-data-util.js @@ -17,6 +17,11 @@ class DictionaryDataUtil { static getPitchAccentInfos(definition) { + if (typeof definition.character === 'string') { + // Kanji + return []; + } + const results = new Map(); const allExpressions = new Set(); const allReadings = new Set(); |