diff --git a/src/lib/components/NotificationToast.svelte b/src/lib/components/NotificationToast.svelte index 0cd416d7e..9e8ad907b 100644 --- a/src/lib/components/NotificationToast.svelte +++ b/src/lib/components/NotificationToast.svelte @@ -12,6 +12,10 @@ export let content: string; onMount(() => { + if (!navigator.userActivation.hasBeenActive) { + return; + } + if ($settings?.notificationSound ?? true) { const audio = new Audio(`/audio/notification.mp3`); audio.play();