From e9c540a0b9a13b2ff4a77d76928682b45f1968d5 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 22 Aug 2020 13:10:50 -0400 Subject: Fix error during pitch accent info generation for kanji data (#744) --- ext/mixed/js/dictionary-data-util.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ext') 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(); -- cgit v1.2.3