diff options
| author | sD <stoned@derpymail.org> | 2020-07-13 18:37:36 +0200 |
|---|---|---|
| committer | sD <stoned@derpymail.org> | 2020-07-13 18:37:36 +0200 |
| commit | 573b4bc2e82145d0c092daf964711a062d8fba9d (patch) | |
| tree | d6a3dc01b77eaab90f2e29daf5b54dede4bb00af /webAO/client.js | |
| parent | e0ef7ad9a89854e0268b03203f5b00c9ddd49a40 (diff) | |
remember the cookie
Diffstat (limited to 'webAO/client.js')
| -rw-r--r-- | webAO/client.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/webAO/client.js b/webAO/client.js index 938c566..4f3d4fc 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -418,6 +418,8 @@ class Client extends EventEmitter { changeSFXVolume(); document.getElementById("client_shoutaudio").volume = getCookie("shoutVolume") || 1; changeShoutVolume(); + document.getElementById("client_testimonyaudio").volume = getCookie("testimonyVolume") || 1; + changeTestimonyVolume(); document.getElementById("client_bvolume").value = getCookie("blipVolume") || 1; changeBlipVolume(); @@ -2183,6 +2185,14 @@ export function changeShoutVolume() { window.changeShoutVolume = changeShoutVolume; /** + * Triggered by the testimony volume slider. + */ +export function changeTestimonyVolume() { + setCookie("testimonyVolume", document.getElementById("client_testimonyaudio").volume); +} +window.changeTestimonyVolume = changeTestimonyVolume; + +/** * Triggered by the blip volume slider. */ export function changeBlipVolume() { |
