From 8a49fc718cbfebe593d18dcf37fef2a19f3aa570 Mon Sep 17 00:00:00 2001 From: nil Date: Thu, 12 Dec 2024 18:11:41 +0100 Subject: add window load event --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 70c9695..c05662c 100755 --- a/src/index.js +++ b/src/index.js @@ -3,9 +3,10 @@ import { nextTurn } from "./engine/turns.js" function start() { + console.log("start") prepareBoard() nextTurn() } -start() +addEventListener("load", _ => {start()}); -- cgit v1.2.3