summaryrefslogtreecommitdiff
path: root/ext/mixed/js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mixed/js')
-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();