diff options
author | Paul Frazee <pfrazee@gmail.com> | 2024-05-06 18:06:44 -0700 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2024-05-06 18:06:44 -0700 |
commit | e264dfbb875118036d5b155f46f2b0b71261e1ff (patch) | |
tree | 4d23da8b7c79071fa3ca81eb1edc21286d1439cf /src | |
parent | 901feba6db9467ce9b75a78128fa305fc3370c7e (diff) | |
parent | 032f849092c8518bc418810346ebf682238ed55c (diff) | |
download | voidsky-e264dfbb875118036d5b155f46f2b0b71261e1ff.tar.zst |
Merge branch 'TuxPenguin09-web-loading' into main
Diffstat (limited to 'src')
-rw-r--r-- | src/App.web.tsx | 7 |
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) { |