about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2024-05-06 18:06:44 -0700
committerPaul Frazee <pfrazee@gmail.com>2024-05-06 18:06:44 -0700
commite264dfbb875118036d5b155f46f2b0b71261e1ff (patch)
tree4d23da8b7c79071fa3ca81eb1edc21286d1439cf /src
parent901feba6db9467ce9b75a78128fa305fc3370c7e (diff)
parent032f849092c8518bc418810346ebf682238ed55c (diff)
downloadvoidsky-e264dfbb875118036d5b155f46f2b0b71261e1ff.tar.zst
Merge branch 'TuxPenguin09-web-loading' into main
Diffstat (limited to 'src')
-rw-r--r--src/App.web.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/App.web.tsx b/src/App.web.tsx
index 0fed089cb..9c2b34a78 100644
--- a/src/App.web.tsx
+++ b/src/App.web.tsx
@@ -112,7 +112,12 @@ function App() {
   const [isReady, setReady] = useState(false)
 
   React.useEffect(() => {
-    initPersistedState().then(() => setReady(true))
+    initPersistedState().then(() => {
+      setReady(true)
+
+      const preloadElement = document.getElementById('preload')
+      preloadElement?.remove()
+    })
   }, [])
 
   if (!isReady) {