Skip to content

Commit

Permalink
fix: fix maximallime backgrounds
Browse files Browse the repository at this point in the history
  • Loading branch information
486c committed Jan 5, 2024
1 parent e508b0e commit cbbb66b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions examples/MaximalLime/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -66,8 +66,6 @@ socket.onmessage = event => {
} else {
miss.innerHTML = 0
}

console.log(data.stars_mods);
}


Expand Down
1 change: 1 addition & 0 deletions examples/websockets-js-html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit cbbb66b

Please sign in to comment.