Notifications: Fix missing sound (#1505)

This commit is contained in:
Alexander Zinchuk 2021-10-18 01:23:13 +03:00
parent 671d888641
commit 6289af1a5f

View File

@ -96,7 +96,7 @@ async function playSound(id: number) {
const volume = notificationSoundVolume / 10;
if (volume === 0) return;
const audio = new Audio('/notification.mp3');
const audio = new Audio('./notification.mp3');
audio.volume = volume;
audio.setAttribute('mozaudiochannel', 'notification');
audio.addEventListener('ended', () => {