summaryrefslogtreecommitdiff
path: root/ext/js/data
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/data')
-rw-r--r--ext/js/data/anki-note-data-creator.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/js/data/anki-note-data-creator.js b/ext/js/data/anki-note-data-creator.js
index 1c32c4b4..e3ff2ca0 100644
--- a/ext/js/data/anki-note-data-creator.js
+++ b/ext/js/data/anki-note-data-creator.js
@@ -596,6 +596,10 @@ class AnkiNoteDataCreator {
}
_getTermHeadwordFuriganaSegments(term, reading) {
- return this._japaneseUtil.distributeFurigana(term, reading);
+ const result = [];
+ for (const {text, reading: reading2} of this._japaneseUtil.distributeFurigana(term, reading)) {
+ result.push({text, furigana: reading2});
+ }
+ return result;
}
}