From 3f8a226668c2c9e5b8deb15e3de5ace7236205da Mon Sep 17 00:00:00 2001 From: Void Date: Sun, 3 May 2020 14:31:01 +0200 Subject: [PATCH] tts-buton now hidden if tts is not supported. --- Resources/Private/Frontend/Partials/Easycaptcha.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Resources/Private/Frontend/Partials/Easycaptcha.html b/Resources/Private/Frontend/Partials/Easycaptcha.html index 92b33c7..a45a519 100644 --- a/Resources/Private/Frontend/Partials/Easycaptcha.html +++ b/Resources/Private/Frontend/Partials/Easycaptcha.html @@ -70,6 +70,8 @@ window.speechSynthesis.speak(utterance); }); }); + } else { + tts_button.style.display = 'none'; } })();