summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-06-07 00:52:22 +0200
committerTor Andersson <tor@ccxvii.net>2021-06-16 00:07:14 +0200
commit23ff001edff2a150658c47db05dccb6b41ec37a5 (patch)
treec44a77f1805af76beb19c6472d25fad718ebe6e2 /public
parent6191357b3ec22cb65772ecc8a9a196323911513c (diff)
downloadserver-23ff001edff2a150658c47db05dccb6b41ec37a5.tar.gz
tripoli: Art assets and rules framework.
Diffstat (limited to 'public')
-rw-r--r--public/common/client.js2
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);