diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/App.web.tsx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/App.web.tsx b/src/App.web.tsx index 39790a448..9c2b34a78 100644 --- a/src/App.web.tsx +++ b/src/App.web.tsx @@ -110,15 +110,14 @@ function InnerApp() { function App() { const [isReady, setReady] = useState(false) - + React.useEffect(() => { initPersistedState().then(() => { setReady(true) - - const preloadElement = document.getElementById('preload'); - preloadElement.remove(); + + const preloadElement = document.getElementById('preload') + preloadElement?.remove() }) - }, []) if (!isReady) { |