1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-24 15:16:25 +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;
}
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;