From f1fa7f0c181ab96a42c8bd7bbab4c8270fe31acf Mon Sep 17 00:00:00 2001 From: lonkaars Date: Thu, 21 Mar 2024 21:30:40 +0100 Subject: fix undefined in word export when kanji is not a link --- yomichan-user/conf.d/lib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yomichan-user/conf.d/lib.js') 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; } -- cgit v1.2.3