mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-01 23:10:40 +01:00
fix-6096 (#11281)
This commit is contained in:
parent
9e330c9e38
commit
866e3f0432
1 changed files with 1 additions and 3 deletions
|
@ -132,9 +132,7 @@ export function play(type: 'noteMy' | 'note' | 'antenna' | 'channel' | 'notifica
|
|||
}
|
||||
|
||||
export function playFile(file: string, volume: number) {
|
||||
const masterVolume = soundConfigStore.state.sound_masterVolume;
|
||||
if (masterVolume === 0) return;
|
||||
|
||||
const audio = setVolume(getAudio(file), volume);
|
||||
if (audio.volume === 0) return;
|
||||
audio.play();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue