about summary refs log tree commit diff
path: root/src/App.web.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/App.web.tsx')
-rw-r--r--src/App.web.tsx10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/App.web.tsx b/src/App.web.tsx
index 0fed089cb..39790a448 100644
--- a/src/App.web.tsx
+++ b/src/App.web.tsx
@@ -110,9 +110,15 @@ function InnerApp() {
 
 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) {