diff options
| author | stonedDiscord <stonedDiscord@users.noreply.github.com> | 2024-11-20 13:31:50 +0000 |
|---|---|---|
| committer | GitHub Action <actions@github.com> | 2024-11-20 13:31:50 +0000 |
| commit | 6684f3fce6e90fd0574d7bab63b629554ab03ef6 (patch) | |
| tree | b2a62247d17e23a77af57aea355ba621666817c2 /webAO/dom/changeBlipVolume.ts | |
| parent | 95a2d1361d84c61b454ebe506e6963b93f6d8dee (diff) | |
Prettified Code!
Diffstat (limited to 'webAO/dom/changeBlipVolume.ts')
| -rw-r--r-- | webAO/dom/changeBlipVolume.ts | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/webAO/dom/changeBlipVolume.ts b/webAO/dom/changeBlipVolume.ts index 572f389..2e77403 100644 --- a/webAO/dom/changeBlipVolume.ts +++ b/webAO/dom/changeBlipVolume.ts @@ -1,15 +1,15 @@ import setCookie from "../utils/setCookie"; -import { client } from '../client' +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); -} + const blipVolume = (<HTMLInputElement>( + document.getElementById("client_bvolume") + )).value; + client.viewport.blipChannels.forEach( + (channel: HTMLAudioElement) => (channel.volume = Number(blipVolume)), + ); + setCookie("blipVolume", blipVolume); +}; window.changeBlipVolume = changeBlipVolume; |
