diff options
author | nil <niljo@airmail.cc> | 2024-12-12 18:11:41 +0100 |
---|---|---|
committer | nil <niljo@airmail.cc> | 2024-12-12 18:11:41 +0100 |
commit | 8a49fc718cbfebe593d18dcf37fef2a19f3aa570 (patch) | |
tree | 112dd43dd79ddc49c8185d84697bb755cd2a86f5 | |
parent | eb460fbb161e76052b7bdd2c57afc65e2e99bc2e (diff) |
add window load event
-rwxr-xr-x | src/index.js | 3 |
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()}); |