Skip to content

Commit

Permalink
idk
Browse files Browse the repository at this point in the history
  • Loading branch information
muktar1907 committed Apr 29, 2024
1 parent 1461cfa commit d98eaef
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions html/index_1.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ <h2>Leaderboard</h2>
let gameData;
let playerData;


console.log(nick+"has joined");
console.log(messageData.ready==="true");

if("ready" in messageData && messageData.ready==="true")
Expand Down Expand Up @@ -314,10 +314,8 @@ <h2>Leaderboard</h2>
};


if(socket.readyState===1)
{
socket.send(JSON.stringify(data));
}

socket.send(JSON.stringify(data));
console.log(JSON.stringify(data));
}

Expand Down

0 comments on commit d98eaef

Please sign in to comment.