1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-28 06:48:36 +09:00

fix sound

This commit is contained in:
NoriDev 2023-06-04 03:12:35 +09:00
parent 1b47c7364b
commit 041f41fb86

View File

@ -124,7 +124,7 @@ export function setVolume(audio: HTMLAudioElement, volume: number): HTMLAudioEle
return audio; 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}`]; const sound = soundConfigStore.state[`sound_${type}`];
if (_DEV_) console.log('play', type, sound); if (_DEV_) console.log('play', type, sound);
if (sound.type == null) return; if (sound.type == null) return;