mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-24 07:06:07 +09:00
audio on mobile fix
This commit is contained in:
parent
532dc63486
commit
1f6fcdad69
@ -30,7 +30,7 @@ export function play(type: string) {
|
||||
|
||||
export function playFile(file: string, volume: number) {
|
||||
const masterVolume = ColdDeviceStorage.get("sound_masterVolume");
|
||||
if (masterVolume === 0) return;
|
||||
if (masterVolume === 0 || volume === 0 || file.toLowerCase().includes("none")) return;
|
||||
|
||||
const audio = setVolume(getAudio(file), volume);
|
||||
audio.play();
|
||||
|
Loading…
Reference in New Issue
Block a user