From 23ff001edff2a150658c47db05dccb6b41ec37a5 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 7 Jun 2021 00:52:22 +0200 Subject: tripoli: Art assets and rules framework. --- public/common/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public') 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); -- cgit v1.2.3