mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-11-24 15:16:25 +09:00
fix sound
This commit is contained in:
parent
1b47c7364b
commit
041f41fb86
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user