fixed registration bug

This commit is contained in:
CHIBOUB Chakib 2024-07-22 18:22:10 +02:00
parent 93ba6f6011
commit 1465dbbeee

View File

@ -62,7 +62,7 @@ document.addEventListener('DOMContentLoaded', () => {
if (result) { if (result) {
registerForm.style.display = 'none'; registerForm.style.display = 'none';
gameContainer.style.display = 'flex'; gameContainer.style.display = 'flex';
startGame(); startWebSocketConnection(token);
} else { } else {
alert('Registration failed. Please try again.'); alert('Registration failed. Please try again.');
} }