Never play the notification sound on native platforms (#406)

Co-authored-by: Coracle-Bot <npub1klq6260@nostr.local>
This commit is contained in:
Coracle-Bot 2026-09-02 22:59:56 +00:00 committed by hodlbod
parent 4578644924
commit f15f3b9c95

View file

@ -1,5 +1,6 @@
<script lang="ts">
import {onMount} from "svelte"
import {Capacitor} from "@capacitor/core"
import {notificationSettings} from "@app/settings"
import {onNotification} from "@app/push"
@ -16,6 +17,8 @@
}
onMount(() => {
if (Capacitor.isNativePlatform()) return
audioElement.load()
document.addEventListener("visibilitychange", onVisibilityChange)