From 041f41fb862c3046f609fb0e2500bfcff166e99b Mon Sep 17 00:00:00 2001 From: NoriDev Date: Sun, 4 Jun 2023 03:12:35 +0900 Subject: [PATCH] fix sound --- packages/frontend/src/scripts/sound.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/scripts/sound.ts b/packages/frontend/src/scripts/sound.ts index 62a3971f2c..5f5ff72f15 100644 --- a/packages/frontend/src/scripts/sound.ts +++ b/packages/frontend/src/scripts/sound.ts @@ -124,7 +124,7 @@ export function setVolume(audio: HTMLAudioElement, volume: number): HTMLAudioEle return audio; } -export function play(type: 'noteMy' | 'note' | 'chatBg' | 'antenna' | 'channel' | 'notification') { +export function play(type: 'noteMy' | 'note' | 'chat' | 'chatBg' | 'antenna' | 'channel' | 'notification') { const sound = soundConfigStore.state[`sound_${type}`]; if (_DEV_) console.log('play', type, sound); if (sound.type == null) return;