aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.js
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/client.js')
-rw-r--r--webAO/client.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/webAO/client.js b/webAO/client.js
index 616d6f5..7e913a1 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -28,7 +28,7 @@ const serverIP = queryDict.ip;
let mode = queryDict.mode;
// Unless there is an asset URL specified, use the wasabi one
-const DEFAULT_HOST = location.hostname ? "http://s3.wasabisys.com/webao/base/" : "base/";
+const DEFAULT_HOST = location.hostname ? "https://s3.wasabisys.com/webao/base/" : "base/";
const AO_HOST = queryDict.asset || DEFAULT_HOST;
const THEME = queryDict.theme || "default";
const MUSIC_HOST = AO_HOST + "sounds/music/";
@@ -391,9 +391,9 @@ class Client extends EventEmitter {
document.getElementById("client_musicaudio").volume = getCookie("musicVolume") || 1;
changeMusicVolume();
- document.getElementById("client_svolume").value = getCookie("sfxVolume") || 100;
+ document.getElementById("client_svolume").value = getCookie("sfxVolume") || 1;
changeSFXVolume();
- document.getElementById("client_bvolume").value = getCookie("blipVolume") || 100;
+ document.getElementById("client_bvolume").value = getCookie("blipVolume") || 1;
changeBlipVolume();
document.getElementById("ic_chat_name").value = getCookie("ic_chat_name");
@@ -1992,8 +1992,8 @@ window.changeMusicVolume = changeMusicVolume;
* Triggered by the sound effect volume slider.
*/
export function changeSFXVolume() {
- viewport.sfxaudio.volume = document.getElementById("client_svolume").value / 100;
- viewport.shoutaudio.volume = document.getElementById("client_svolume").value / 100;
+ viewport.sfxaudio.volume = document.getElementById("client_svolume").value;
+ viewport.shoutaudio.volume = document.getElementById("client_svolume").value;
setCookie("sfxVolume", document.getElementById("client_svolume").value);
}
window.changeSFXVolume = changeSFXVolume;
@@ -2002,7 +2002,7 @@ window.changeSFXVolume = changeSFXVolume;
* Triggered by the blip volume slider.
*/
export function changeBlipVolume() {
- viewport.blipVolume = document.getElementById("client_bvolume").value / 100;
+ viewport.blipVolume = document.getElementById("client_bvolume").value;
setCookie("blipVolume", document.getElementById("client_bvolume").value);
}
window.changeBlipVolume = changeBlipVolume;