This commit is contained in:
Cay 2026-03-12 11:01:25 +00:00
parent 1a532fef77
commit 7895648209

View File

@ -1,5 +1,10 @@
const socket = io();
socket.emit("register", window.playerName?.name || window.playerName);
const username =
typeof window.playerName === "object"
? window.playerName.name
: window.playerName;
socket.emit("register", username);
const chatTitle = document.getElementById("chat-title");
let channel = "global";