summary refs log tree commit diff
path: root/main.js
diff options
context:
space:
mode:
authorWlodekM <[email protected]>2024-12-01 21:33:45 +0200
committerWlodekM <[email protected]>2024-12-01 21:33:45 +0200
commitd534c78852d77acd27f3e6c5939af7e7de5526a3 (patch)
treed431ece747b0bf93f8bf8c2563c877db4622ce65 /main.js
parentfc76e4501d0f9db81cf1e5077d2487309acd7694 (diff)
uh
Diffstat (limited to 'main.js')
-rw-r--r--main.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.js b/main.js
index 40b8ffa..c300c41 100644
--- a/main.js
+++ b/main.js
@@ -28,4 +28,6 @@ function onclose() {
 }
 sd.ws.onclose = onclose
 sd.ws.onerror = onclose
-pages.goToPage('login')
\ No newline at end of file
+document.addEventListener('DOMContentLoaded', () => {
+    pages.goToPage('login')
+})
\ No newline at end of file