From 4637839e30864b4fa8847023a7fe4000375267cb Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 20 Feb 2020 23:17:17 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=9C=E3=83=AA=E3=83=A5=E3=83=BC=E3=83=A0?= =?UTF-8?q?=E3=81=8C=EF=BC=90=E3=81=AE=E3=81=A8=E3=81=8D=E3=82=B5=E3=82=A6?= =?UTF-8?q?=E3=83=B3=E3=83=89=E3=82=92=E9=B3=B4=E3=82=89=E3=81=95=E3=81=AA?= =?UTF-8?q?=E3=81=84=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/init.ts | 1 + 1 file changed, 1 insertion(+) 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`);