diff options
-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"); } |