diff --git a/packages/preload/index.ts b/packages/preload/index.ts index d60cddf..424096f 100644 --- a/packages/preload/index.ts +++ b/packages/preload/index.ts @@ -4,8 +4,4 @@ import { useLoading } from './loading' const { appendLoading, removeLoading } = useLoading() window.removeLoading = removeLoading; -;(async () => { - await domReady() - - appendLoading() -})() \ No newline at end of file +domReady().then(appendLoading)