Notifications: Fix missing sound (#1505)
This commit is contained in:
parent
671d888641
commit
6289af1a5f
@ -96,7 +96,7 @@ async function playSound(id: number) {
|
|||||||
const volume = notificationSoundVolume / 10;
|
const volume = notificationSoundVolume / 10;
|
||||||
if (volume === 0) return;
|
if (volume === 0) return;
|
||||||
|
|
||||||
const audio = new Audio('/notification.mp3');
|
const audio = new Audio('./notification.mp3');
|
||||||
audio.volume = volume;
|
audio.volume = volume;
|
||||||
audio.setAttribute('mozaudiochannel', 'notification');
|
audio.setAttribute('mozaudiochannel', 'notification');
|
||||||
audio.addEventListener('ended', () => {
|
audio.addEventListener('ended', () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user