summaryrefslogtreecommitdiff
path: root/packages/frontend/src/scripts
diff options
context:
space:
mode:
authoryutaro <20573073+yutaro@users.noreply.github.com>2023-07-15 10:00:03 +0900
committerGitHub <noreply@github.com>2023-07-15 10:00:03 +0900
commit866e3f04323c70faf432a0fff6b91cb8c41de33c (patch)
tree3f71d1a0ad30a9e4997f6dc35b599d3611876306 /packages/frontend/src/scripts
parentfeat: MeilisearchにIndexするノートの範囲を設定できるように ... (diff)
downloadsharkey-866e3f04323c70faf432a0fff6b91cb8c41de33c.tar.gz
sharkey-866e3f04323c70faf432a0fff6b91cb8c41de33c.tar.bz2
sharkey-866e3f04323c70faf432a0fff6b91cb8c41de33c.zip
fix-6096 (#11281)
Diffstat (limited to 'packages/frontend/src/scripts')
-rw-r--r--packages/frontend/src/scripts/sound.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/frontend/src/scripts/sound.ts b/packages/frontend/src/scripts/sound.ts
index 7a5dd4dbfa..68136cdcfe 100644
--- a/packages/frontend/src/scripts/sound.ts
+++ b/packages/frontend/src/scripts/sound.ts
@@ -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();
}