diff options
| author | stonedDiscord <stonedDiscord@users.noreply.github.com> | 2024-11-20 13:04:14 +0000 |
|---|---|---|
| committer | GitHub Action <actions@github.com> | 2024-11-20 13:04:14 +0000 |
| commit | b8283b373caa2ac198497a8dd466bf494d81982a (patch) | |
| tree | 23de734e7ab5c093ace1d1a8fec716bb7603bdbf /webAO/dom/changeVolume.js | |
| parent | 376fadcca3a1b5c32a3361b2843c6c576237a1a3 (diff) | |
Prettified Code!
Diffstat (limited to 'webAO/dom/changeVolume.js')
| -rw-r--r-- | webAO/dom/changeVolume.js | 11 |
1 files changed, 7 insertions, 4 deletions
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; |
