1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-14 16:56:00 +02:00

Merge branch 'develop' into pag-back

This commit is contained in:
tamaina
2023-07-17 07:29:32 +00:00
92 changed files with 3176 additions and 1027 deletions

View File

@@ -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();
}