Trim some js.

This commit is contained in:
AnduinXue
2023-11-27 17:11:54 +00:00
parent bf3121e47a
commit 48702695b2
+2 -1
View File
@@ -92,7 +92,8 @@ const initGameBoard = function (player, gameId) {
};
// Auto reconnect.
socket.onclose = function (event) {
socket.onclose = function () {
alert("Socket closed. Reconnecting...");
setTimeout(function () {
initGameBoard(player, gameId);
}, 1000);