mirror of https://github.com/jlelse/GoBlog
Fix
This commit is contained in:
parent
a1297e72c1
commit
bbf92a7d09
|
@ -4,7 +4,7 @@
|
||||||
let speakButton = query('#speakBtn')
|
let speakButton = query('#speakBtn')
|
||||||
let speech = window.speechSynthesis
|
let speech = window.speechSynthesis
|
||||||
|
|
||||||
if (getVoice()) {
|
if (speech) {
|
||||||
speakButton.classList.remove('hide')
|
speakButton.classList.remove('hide')
|
||||||
speakButton.onclick = startSpeak
|
speakButton.onclick = startSpeak
|
||||||
speakButton.textContent = speakButton.dataset.speak
|
speakButton.textContent = speakButton.dataset.speak
|
||||||
|
|
Loading…
Reference in New Issue