diff --git a/public/js/handlers.js b/public/js/handlers.js index 5920802..4676f04 100644 --- a/public/js/handlers.js +++ b/public/js/handlers.js @@ -33,7 +33,6 @@ function shortName(id) { } export function handleConnected(msg) { - console.debug('handleConnected', msg); state.playerId = msg.playerId; try { if (msg.playerId) localStorage.setItem('playerId', msg.playerId); @@ -168,7 +167,6 @@ export function onMessage(ev) { switch (msg.type) { case 'resume_result': { if (msg.ok) { - console.debug('handleResumeResult', msg); if (msg.playerId) { state.playerId = msg.playerId; try { diff --git a/public/js/render.js b/public/js/render.js index 644c295..bdfd99c 100644 --- a/public/js/render.js +++ b/public/js/render.js @@ -104,24 +104,12 @@ export function renderRoom(room) { } $readyChk.parentElement.classList.toggle('hidden', room.state.status !== 'lobby'); } - - console.log('room host id:', room.hostId, 'my id:', state.playerId); const isHost = state.playerId === room.hostId; const activePlayers = room.players.filter((p) => !p.spectator && p.connected); const allReady = activePlayers.length > 0 && activePlayers.every((p) => p.ready); - console.log('room state status:', room.state.status, 'host:', isHost, 'allReady:', allReady); const canStart = room.state.status === 'lobby' && isHost && allReady; - console.log( - `Rendering room ${room.id}, players: ${room.players.length}, active: ${activePlayers.length}, ready: ${allReady}, isHost: ${isHost}` - ); - console.log('Me:', me); - console.log('Pending ready:', state.pendingReady); - console.log('Room state:', room.state); - console.log('My timeline:', myTl); - console.log('CanStart:', canStart); - if ($startGame) $startGame.classList.toggle('hidden', !canStart); const isMyTurn =