Update frontend/src/pages/ttt/ttt.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
apetitco 2025-12-11 16:16:17 +01:00 committed by GitHub
parent 7005d644ee
commit ec91a55058
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -177,6 +177,8 @@ async function handleTTT(): Promise<RouteHandlerReturn>
});
restartBtn?.addEventListener('click', () => {
board.reset();
// Remove pointer-events-none to re-enable the board if it was disabled
app?.querySelector('.ttt-grid')?.classList.remove('pointer-events-none');
updateUI();
showInfo('Game Restarted');
});