diff --git a/src/lib/components/app/daemon.svelte b/src/lib/components/app/daemon.svelte index 9298766..7ed97e4 100644 --- a/src/lib/components/app/daemon.svelte +++ b/src/lib/components/app/daemon.svelte @@ -54,11 +54,9 @@ }); $effect(() => { - console.log('asdf') - // Run this effect whenever state.isPlaying or audioElement changes if (!audioElement) return; - if (state.isPlaying) { + if (state.isPlaying && state.hasInteracted) { audioElement.play().catch(() => { state.error = "Audio playback failed. Please interact with the page first."; state.isPlaying = false; @@ -75,7 +73,14 @@ {#if !state.hasInteracted}