diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-03-21 21:30:40 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-03-21 21:30:40 +0100 |
commit | f1fa7f0c181ab96a42c8bd7bbab4c8270fe31acf (patch) | |
tree | 1b2f35236f9b0fb0e1a5fa0a84272581bde31a66 /yomichan-user/conf.d/lib.js | |
parent | 20d89a72c4e7deb5105d6949568c2a7e67b44a0b (diff) |
fix undefined in word export when kanji is not a link
Diffstat (limited to 'yomichan-user/conf.d/lib.js')
-rw-r--r-- | yomichan-user/conf.d/lib.js | 2 |
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; } |