aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-01-20 23:25:25 +0100
committerlonkaars <loek@pipeframe.xyz>2023-01-20 23:25:25 +0100
commit73156ac666ffe9916ef58d50f434741a695d8e84 (patch)
treeb627015bbd02ac19d921daf7c4baff0c42ed5ff2
parent61d1cf73928e345dcfe4a8521762b6467ed4c9db (diff)
check if empty instead of innerHTML check1.3.2
-rw-r--r--anki-card-template/card.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/anki-card-template/card.js b/anki-card-template/card.js
index d3efe29..f8dbcac 100644
--- a/anki-card-template/card.js
+++ b/anki-card-template/card.js
@@ -117,7 +117,7 @@ function run() {
}
// remove spoiler from sentence translation if word reading field is empty
- if(document.getElementById("target-word-reading").innerText.length == 0) {
+ if(document.getElementById("target-word-reading").classList.contains("empty")) {
document.getElementById("sentence-translation").classList.remove("hidden");
}