mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 08:03:08 +02:00
Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop
This commit is contained in:
commit
7887ccc993
1 changed files with 2 additions and 2 deletions
|
@ -72,8 +72,8 @@ export function setVolume(audio: HTMLAudioElement, volume: number): HTMLAudioEle
|
||||||
return audio;
|
return audio;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function play(type: string) {
|
export function play(type: 'noteMy' | 'note' | 'antenna' | 'channel' | 'notification') {
|
||||||
const sound = ColdDeviceStorage.get('sound_' + type as any);
|
const sound = ColdDeviceStorage.get(`sound_${type}`);
|
||||||
if (sound.type == null) return;
|
if (sound.type == null) return;
|
||||||
playFile(sound.type, sound.volume);
|
playFile(sound.type, sound.volume);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue