diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-01-20 23:25:25 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-01-20 23:25:25 +0100 |
commit | 73156ac666ffe9916ef58d50f434741a695d8e84 (patch) | |
tree | b627015bbd02ac19d921daf7c4baff0c42ed5ff2 /anki-card-template | |
parent | 61d1cf73928e345dcfe4a8521762b6467ed4c9db (diff) |
check if empty instead of innerHTML check1.3.2
Diffstat (limited to 'anki-card-template')
-rw-r--r-- | anki-card-template/card.js | 2 |
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"); } |