diff options
-rw-r--r-- | public/common/client.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/common/client.js b/public/common/client.js index 5185da1..74738fa 100644 --- a/public/common/client.js +++ b/public/common/client.js @@ -189,7 +189,7 @@ function init_client(roles) { socket.on('roles', (me, players) => { console.log("ROLES", me, JSON.stringify(players)); - player = me; + player = me.replace(/ /g, '_'); if (player == "Observer") document.querySelector(".chat_button").style.display = "none"; document.querySelector(".grid_top").classList.add(player); |