aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2022-03-14 09:32:20 +0100
committerGitHub <noreply@github.com>2022-03-14 09:32:20 +0100
commit9686e9765a0e64c081ef3beb68dccf7c263abd54 (patch)
tree2d65e30b7c937ea6ee87e8480f6bc50cfeec53ef /webAO
parent29330b3e707d975bfb05024338123f3f131127d5 (diff)
parent6f25aebc0c02ed1d9ba6b2545ada595a5f274366 (diff)
Merge pull request #110 from caleb-mabry/fix-blip-slider
Fix blip slider to actually work
Diffstat (limited to 'webAO')
-rw-r--r--webAO/client.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/webAO/client.js b/webAO/client.js
index 6cdcc50..8bac1cc 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -2488,7 +2488,8 @@ window.changeTestimonyVolume = changeTestimonyVolume;
* Triggered by the blip volume slider.
*/
export function changeBlipVolume() {
- viewport.blipVolume = document.getElementById('client_bvolume').value;
+ const blipVolume = document.getElementById('client_bvolume').value;
+ viewport.blipChannels.forEach((channel) => channel.volume = blipVolume);
setCookie('blipVolume', document.getElementById('client_bvolume').value);
}
window.changeBlipVolume = changeBlipVolume;