blob: 572f3890dae635f97401a1ffd530acc1bfd40bf5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import setCookie from "../utils/setCookie";
import { client } from '../client'
/**
* Triggered by the blip volume slider.
*/
export const changeBlipVolume = () => {
const blipVolume = (<HTMLInputElement>(
document.getElementById("client_bvolume")
)).value;
client.viewport.blipChannels.forEach(
(channel: HTMLAudioElement) => (channel.volume = Number(blipVolume))
);
setCookie("blipVolume", blipVolume);
}
window.changeBlipVolume = changeBlipVolume;
|