From b8283b373caa2ac198497a8dd466bf494d81982a Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Wed, 20 Nov 2024 13:04:14 +0000 Subject: Prettified Code! --- webAO/dom/changeVolume.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'webAO/dom/changeVolume.js') diff --git a/webAO/dom/changeVolume.js b/webAO/dom/changeVolume.js index c62d933..bae82d2 100644 --- a/webAO/dom/changeVolume.js +++ b/webAO/dom/changeVolume.js @@ -1,11 +1,11 @@ -import setCookie from '../utils/setCookie.ts'; +import setCookie from "../utils/setCookie.ts"; /** * Triggered by the sound effect volume slider. */ export function changeSFXVolume() { - setCookie('sfxVolume', document.getElementById('client_sfxaudio').volume); + setCookie("sfxVolume", document.getElementById("client_sfxaudio").volume); } window.changeSFXVolume = changeSFXVolume; @@ -13,7 +13,10 @@ window.changeSFXVolume = changeSFXVolume; * Triggered by the testimony volume slider. */ export function changeTestimonyVolume() { - setCookie('testimonyVolume', document.getElementById('client_testimonyaudio').volume); + setCookie( + "testimonyVolume", + document.getElementById("client_testimonyaudio").volume, + ); } window.changeTestimonyVolume = changeTestimonyVolume; @@ -22,6 +25,6 @@ window.changeTestimonyVolume = changeTestimonyVolume; */ export function changeShoutVolume() { - setCookie('shoutVolume', document.getElementById('client_shoutaudio').volume); + setCookie("shoutVolume", document.getElementById("client_shoutaudio").volume); } window.changeShoutVolume = changeShoutVolume; -- cgit