Fix memory leak, notification badge not showing

This commit is contained in:
Jon Staab
2026-01-06 16:52:15 -08:00
parent 7f8744725c
commit d416fe913e
2 changed files with 21 additions and 13 deletions
@@ -23,16 +23,16 @@
}
}
$effect(() => {
if ($notifications.size > notificationCount) {
playSound()
}
notificationCount = $notifications.size
})
onMount(() => {
audioElement.load()
notifications.subscribe(notifications => {
if (notifications.size > notificationCount) {
playSound()
}
notificationCount = notifications.size
})
})
</script>