From 461494051dd5d19d2c4af787014fd27fe460023d Mon Sep 17 00:00:00 2001 From: SIMAILA Djalim Date: Thu, 12 Jan 2023 17:30:55 +0100 Subject: [PATCH] fixed non working name add --- truthseeker/static/js/game_lobby.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/truthseeker/static/js/game_lobby.js b/truthseeker/static/js/game_lobby.js index e941514..5ccfe6a 100644 --- a/truthseeker/static/js/game_lobby.js +++ b/truthseeker/static/js/game_lobby.js @@ -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")); }); }