From 23bdef0b8484bb3078d5a85523fc07f15866f3e4 Mon Sep 17 00:00:00 2001 From: Talon Date: Fri, 18 Jul 2025 23:10:36 +0100 Subject: [PATCH] Fix aria stuff --- src/game/index.html | 3 --- src/game/index.js | 10 +++++----- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/game/index.html b/src/game/index.html index 90330d4..3b6c205 100644 --- a/src/game/index.html +++ b/src/game/index.html @@ -751,21 +751,18 @@ diff --git a/src/game/index.js b/src/game/index.js index 8ce2f51..ae6223f 100644 --- a/src/game/index.js +++ b/src/game/index.js @@ -37,13 +37,13 @@ if (localStorage.getItem("save")) { }); } else { setState(states.BEFORE_PLAY); + + addButtonEventListener("begin", () => { + setState(states.PLAY_AREA); + startGame(true); + }); } -addButtonEventListener("begin", () => { - setState(states.PLAY_AREA); - startGame(true); -}); - function startGame(newGame) { const game = new Game(newGame);