diff --git a/src/core/utils/notify.ts b/src/core/utils/notify.ts index c8b1e6b2..19d451b8 100644 --- a/src/core/utils/notify.ts +++ b/src/core/utils/notify.ts @@ -1,6 +1,6 @@ import { useAppStore } from '@core/stores/appStore.js'; -const notificationSound = new Audio("/notification.wav"); +const notificationSound = new Audio("/notification.wav"); //change sound if needed let isPlaying = false; @@ -10,7 +10,6 @@ export const playNotificationSound = () => { isPlaying = true; notificationSound.play(); - notificationSound.onended = () => { isPlaying = false; };