Option to control how notifications are shown

This commit is contained in:
space-nuko
2023-05-29 10:27:14 -05:00
parent a2075ede60
commit 51d77ddc53
7 changed files with 77 additions and 7 deletions

View File

@@ -635,6 +635,9 @@ export function nextLetter(s: string): string {
}
export function playSound(sound: string) {
if (!configState.canPlayNotificationSound())
return;
const url = `${location.origin}/sound/${sound}`;
const audio = new Audio(url);
audio.play();