summaryrefslogtreecommitdiff
path: root/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'main.js')
-rw-r--r--main.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.js b/main.js
index 0415b29..94d5e77 100644
--- a/main.js
+++ b/main.js
@@ -1,8 +1,8 @@
import { setupLevelSelectUi } from './levelSelect.js';
import { setupLevel, setupLevelUi } from './level.js';
-window.onload = () => {
-
+window.onload = () => setTimeout(() => {
+
const root = document.getElementById('root');
root.classList.add('center');
@@ -79,4 +79,4 @@ window.onload = () => {
setupLevelSelectUi(root, sfx);
};
root.appendChild(start);
-}
+}, 200);