diff options
| author | bobzel <zzzman@gmail.com> | 2023-12-21 11:58:12 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-12-21 11:58:12 -0500 |
| commit | ee53adac4d718ee5389b66e9b93ab1240565cd30 (patch) | |
| tree | 6f9a3b078b00e7b025c5c257b0fe7028f9df1aa9 /src/client/views/Main.tsx | |
| parent | e5536e19be862125cef574faff4d745191d7849c (diff) | |
| parent | f50ed77da0f5bf4990ec8bcd6a3b7b8021081d79 (diff) | |
Merge branch 'zaul-branch-2' into moreUpgrading
Diffstat (limited to 'src/client/views/Main.tsx')
| -rw-r--r-- | src/client/views/Main.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/views/Main.tsx b/src/client/views/Main.tsx index 96bd52d39..17c21326d 100644 --- a/src/client/views/Main.tsx +++ b/src/client/views/Main.tsx @@ -22,7 +22,10 @@ FieldLoader.ServerLoadStatus = { requested: 0, retrieved: 0, message: 'cache' }; (async () => { MainView.Live = window.location.search.includes('live'); - const root = ReactDOM.createRoot(document.getElementById('root')!); + const rootEle = document.getElementById('root'); + if (!rootEle) return; + rootEle.style.zIndex = '0'; + const root = ReactDOM.createRoot(rootEle); root.render(<FieldLoader />); window.location.search.includes('safe') && CollectionView.SetSafeMode(true); const info = await CurrentUserUtils.loadCurrentUser(); |
