summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-08-22 13:10:50 -0400
committerGitHub <noreply@github.com>2020-08-22 13:10:50 -0400
commite9c540a0b9a13b2ff4a77d76928682b45f1968d5 (patch)
tree55e11a2277e10655a554941ff2a9898f7a272ffe /ext
parentcc9481bd38c5921d67c55e9ba928b33ca40c93dd (diff)
Fix error during pitch accent info generation for kanji data (#744)
Diffstat (limited to 'ext')
-rw-r--r--ext/mixed/js/dictionary-data-util.js5
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();