From 1465dbbeee9fc84704d1287967c0d0539db554e3 Mon Sep 17 00:00:00 2001 From: CHIBOUB Chakib Date: Mon, 22 Jul 2024 18:22:10 +0200 Subject: [PATCH] fixed registration bug --- pong/static/game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pong/static/game.js b/pong/static/game.js index 5e40a1a..4c985aa 100644 --- a/pong/static/game.js +++ b/pong/static/game.js @@ -62,7 +62,7 @@ document.addEventListener('DOMContentLoaded', () => { if (result) { registerForm.style.display = 'none'; gameContainer.style.display = 'flex'; - startGame(); + startWebSocketConnection(token); } else { alert('Registration failed. Please try again.'); }