local game btn ok

This commit is contained in:
bgoulard 2026-01-05 17:15:29 +01:00 committed by Maix0
parent 94d263993d
commit b3151d4b28

View file

@ -232,13 +232,12 @@ function pongClient(_url: string, _args: RouteHandlerParams): RouteHandlerReturn
// ---
queueBtn.innerText = QueueState.Iddle;
currentGame = null;
render(DEFAULT_POSITIONS);
currentGame = null;
batLeft.style.backgroundColor = DEFAULT_COLOR;
batRight.style.backgroundColor = DEFAULT_COLOR;
socket.on('updateInformation', (e) => {
showInfo(`UpdateInformation: t=${e.totalUser};q=${e.inQueue};g=${e.totalGames}`);
queue_infos.innerText = `${e.totalUser}👤 ${e.inQueue}${e.totalGames}▮•▮`;
});
socket.on('queueEvent', (e) => showInfo(`QueueEvent: ${e}`));