From 1a532fef77b49c1fd6a966a7278812ae6d79d891 Mon Sep 17 00:00:00 2001 From: Cay Date: Thu, 12 Mar 2026 10:59:44 +0000 Subject: [PATCH] tdzik --- public/js/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/chat.js b/public/js/chat.js index 1713cd4..cd1ae2c 100644 --- a/public/js/chat.js +++ b/public/js/chat.js @@ -1,5 +1,5 @@ const socket = io(); -socket.emit("register", String(window.playerName)); +socket.emit("register", window.playerName?.name || window.playerName); const chatTitle = document.getElementById("chat-title"); let channel = "global";