aboutsummaryrefslogtreecommitdiff
path: root/webAO/dom/changeVolume.js
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/dom/changeVolume.js')
-rw-r--r--webAO/dom/changeVolume.js11
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;