preload/splash.ts -> preload/index.ts
This commit is contained in:
1 parent
bb1505d2c8
commit
0ab15c65f1
2 files changed
+8
-3
No files matched your search
@@ -83,5 +83,10 @@ function useLoading() {
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const { appendLoading, removeLoading } = useLoading()
|
||||
window.removeLoading = removeLoading
|
||||
domReady().then(appendLoading)
|
||||
|
||||
window.onmessage = ev => {
|
||||
ev.data.payload === 'removeLoading' && removeLoading()
|
||||
}
|
||||
|
||||
setTimeout(removeLoading, 4999)
|
||||
Reference in new issue
Block a user