Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Zekiah-A authored Mar 3, 2024
1 parent 2e2fe35 commit 84f04ab
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -992,8 +992,8 @@
}
case 21: {
let a = data.getUint32(1), b = 5 + a, c = data.buffer.slice(5, 5 + a), f = new Uint8Array(9), u = new DataView(f.buffer)
;window.challengeData = new Uint8Array(data.buffer.slice(b));let d = await Object.getPrototypeOf(async function() {}).constructor(atob(decoder.decode(c)))();
delete window.challengeData;u.setUint8(0, 21);u.setBigInt64(1, d);call(send, ws, u.buffer);
;window.challengeData = new Uint8Array(data.buffer.slice(b));let d = await Object.getPrototypeOf(async function() {}).constructor(atob(decoder.decode(c)))()
;delete window.challengeData;u.setUint8(0, 21);u.setBigInt64(1, d);call(send, ws, u.buffer);
break
}
}
Expand Down Expand Up @@ -1058,7 +1058,7 @@
}
call(addEventListener, pok, "click", oclick)

function sendLiveChatMsg(message){
function sendLiveChatMsg(message) {
if (message.startsWith(":name")) {
namePanel.style.visibility = "visible"
nameInput.value = message.slice(5).trim()
Expand Down Expand Up @@ -1095,10 +1095,11 @@
let id = intIdPositions.get(Math.floor(x) + Math.floor(y) * WIDTH)
if (id === undefined) {
alert("Could not find details of who placed pixel at current location...")
return
}
let name = intIdNames.get(id)
alert(`Details of who placed at ${Math.floor(x)} ${Math.floor(y)
}:\nName: ${name || 'none'
alert(`Details of who placed at ${Math.floor(x)}, ${Math.floor(y)
}:\nName: ${name || 'anon'
}\nUser ID: #${id}`)
return
}
Expand Down

0 comments on commit 84f04ab

Please sign in to comment.