diff --git a/src/client/init.ts b/src/client/init.ts index d333a1289..b65eba7c0 100644 --- a/src/client/init.ts +++ b/src/client/init.ts @@ -190,6 +190,7 @@ os.init(async () => { (vm as any).focus(); }, sound(type: string) { + if (this.$store.state.device.sfxVolume === 0) return; const sound = this.$store.state.device['sfx' + type.substr(0, 1).toUpperCase() + type.substr(1)]; if (sound == null) return; const audio = new Audio(`/assets/sounds/${sound}.mp3`);