Merge pull request #26 from ThomasRubini/js_client_side
fixed non working name add
This commit is contained in:
commit
0efed3b845
@ -333,9 +333,8 @@ function initSock(){
|
||||
window.location.href = "/multi";
|
||||
})
|
||||
socket.on("playersjoin", (username) => {
|
||||
console.log(`${username} joined`);
|
||||
player_list = document.getElementsByClassName("player_names")[0];
|
||||
player_list.appendChild(document.createTextNode(username)+"\n");
|
||||
player_list.appendChild(document.createTextNode(username+"\n"));
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user