tzuo
This commit is contained in:
parent
1a532fef77
commit
7895648209
@ -1,5 +1,10 @@
|
|||||||
const socket = io();
|
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");
|
const chatTitle = document.getElementById("chat-title");
|
||||||
|
|
||||||
let channel = "global";
|
let channel = "global";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user