1
mirror of https://github.com/jlelse/GoBlog synced 2024-05-29 07:14:27 +00:00
This commit is contained in:
Jan-Lukas Else 2021-02-18 09:26:55 +01:00
parent a1297e72c1
commit bbf92a7d09

View File

@ -4,7 +4,7 @@
let speakButton = query('#speakBtn')
let speech = window.speechSynthesis
if (getVoice()) {
if (speech) {
speakButton.classList.remove('hide')
speakButton.onclick = startSpeak
speakButton.textContent = speakButton.dataset.speak