Update frontend/src/pages/ttt/ttt.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
7005d644ee
commit
ec91a55058
1 changed files with 2 additions and 0 deletions
|
|
@ -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');
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue