Skip to content
Snippets Groups Projects
Commit 7887ccc9 authored by syuilo's avatar syuilo
Browse files

Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop

parents 1a62ca52 19123314
No related branches found
No related tags found
No related merge requests found
......@@ -72,8 +72,8 @@ export function setVolume(audio: HTMLAudioElement, volume: number): HTMLAudioEle
return audio;
}
export function play(type: string) {
const sound = ColdDeviceStorage.get('sound_' + type as any);
export function play(type: 'noteMy' | 'note' | 'antenna' | 'channel' | 'notification') {
const sound = ColdDeviceStorage.get(`sound_${type}`);
if (sound.type == null) return;
playFile(sound.type, sound.volume);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment