Skip to content
Snippets Groups Projects
Unverified Commit 866e3f04 authored by yutaro's avatar yutaro Committed by GitHub
Browse files

fix-6096 (#11281)

parent 9e330c9e
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment