aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-03-21 21:30:40 +0100
committerlonkaars <loek@pipeframe.xyz>2024-03-21 21:30:40 +0100
commitf1fa7f0c181ab96a42c8bd7bbab4c8270fe31acf (patch)
tree1b2f35236f9b0fb0e1a5fa0a84272581bde31a66
parent20d89a72c4e7deb5105d6949568c2a7e67b44a0b (diff)
fix undefined in word export when kanji is not a link
-rw-r--r--yomichan-user/conf.d/lib.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/yomichan-user/conf.d/lib.js b/yomichan-user/conf.d/lib.js
index 6cb231e..f01dba0 100644
--- a/yomichan-user/conf.d/lib.js
+++ b/yomichan-user/conf.d/lib.js
@@ -37,7 +37,7 @@ function rubyHelper(element, reading) {
for (var child of element.childNodes) {
if (reading && child.nodeName != "RT") continue;
if (!reading && child.nodeName == "RT") continue;
- out += child.innerText;
+ out += child.textContent;
}
return out;
}