From 6684f3fce6e90fd0574d7bab63b629554ab03ef6 Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Wed, 20 Nov 2024 13:31:50 +0000 Subject: Prettified Code! --- webAO/dom/changeBlipVolume.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'webAO/dom/changeBlipVolume.ts') 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 = (( - document.getElementById("client_bvolume") - )).value; - client.viewport.blipChannels.forEach( - (channel: HTMLAudioElement) => (channel.volume = Number(blipVolume)) - ); - setCookie("blipVolume", blipVolume); -} + const blipVolume = (( + document.getElementById("client_bvolume") + )).value; + client.viewport.blipChannels.forEach( + (channel: HTMLAudioElement) => (channel.volume = Number(blipVolume)), + ); + setCookie("blipVolume", blipVolume); +}; window.changeBlipVolume = changeBlipVolume; -- cgit