diff options
| author | yutaro <20573073+yutaro@users.noreply.github.com> | 2023-07-15 10:00:03 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-15 10:00:03 +0900 |
| commit | 866e3f04323c70faf432a0fff6b91cb8c41de33c (patch) | |
| tree | 3f71d1a0ad30a9e4997f6dc35b599d3611876306 /packages/frontend/src/scripts | |
| parent | feat: MeilisearchにIndexするノートの範囲を設定できるように ... (diff) | |
| download | sharkey-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.ts | 4 |
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(); } |