From cbbb66b74e1d1dc2283264a932fed7bf542baa1e Mon Sep 17 00:00:00 2001 From: 486c Date: Fri, 5 Jan 2024 22:59:29 +0300 Subject: [PATCH] fix: fix maximallime backgrounds --- examples/MaximalLime/index.js | 4 +--- examples/websockets-js-html/index.html | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/MaximalLime/index.js b/examples/MaximalLime/index.js index 7816311..886e1bb 100644 --- a/examples/MaximalLime/index.js +++ b/examples/MaximalLime/index.js @@ -27,7 +27,7 @@ socket.onmessage = event => { let data = JSON.parse(event.data); if (tempState !== data.beatmap.paths.background_path_full) { tempState = data.beatmap.paths.background_path_full - bg.setAttribute('src', `http://127.0.0.1:9001/Songs/${data.background_path_full}`) + bg.setAttribute('src', `http://127.0.0.1:9001/Songs/${data.beatmap.paths.background_path_full}`) } if (data.playtime > 1000) { let seconds = (data.playtime/1000).toFixed(0); @@ -66,8 +66,6 @@ socket.onmessage = event => { } else { miss.innerHTML = 0 } - - console.log(data.stars_mods); } diff --git a/examples/websockets-js-html/index.html b/examples/websockets-js-html/index.html index db8728d..56cd90c 100644 --- a/examples/websockets-js-html/index.html +++ b/examples/websockets-js-html/index.html @@ -40,6 +40,7 @@ console.log("Message from server ", event.data); const data = JSON.parse(event.data) + console.log(data.keyoverlay) const stars_elem = document.getElementById("stars"); stars_elem.innerHTML = "Stars: " + data.stars.toString();