summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornil <niljo@airmail.cc>2024-12-12 18:11:41 +0100
committernil <niljo@airmail.cc>2024-12-12 18:11:41 +0100
commit8a49fc718cbfebe593d18dcf37fef2a19f3aa570 (patch)
tree112dd43dd79ddc49c8185d84697bb755cd2a86f5
parenteb460fbb161e76052b7bdd2c57afc65e2e99bc2e (diff)
add window load event
-rwxr-xr-xsrc/index.js3
1 files changed, 2 insertions, 1 deletions
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()});