diff --git a/index.html b/index.html index d100b25e..7466faff 100644 --- a/index.html +++ b/index.html @@ -194,10 +194,7 @@ async function makeImage() { btn.innerHTML = 'Make Image' btn.disabled = false; - - const shouldPlaySound = document.querySelector('#sound_toggle').checked - - if (shouldPlaySound) { + if (isSoundEnabled()) { playSound() }