File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
astro/src/default/components Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 8
8
</div >
9
9
</div >
10
10
<script >
11
- const progressEl = document.querySelector('[data-id="page-loading-progress"]') as HTMLDivElement ;
11
+ const progressEl = document.querySelector('div [data-id="page-loading-progress"]' as 'div') ;
12
12
const storageKey = 'tk_plid';
13
13
const maxDurationWithoutProgressBar = 500;
14
14
Original file line number Diff line number Diff line change @@ -29,10 +29,9 @@ export async function safeBoot(options: BootOptions) {
29
29
localBootStatus . set ( 'booting' ) ;
30
30
}
31
31
32
- return WebContainer . boot ( options ) . then ( ( webcontainer ) => {
33
- localBootStatus . set ( 'booted' ) ;
34
- return webcontainer ;
35
- } ) ;
32
+ const webconntainer = await WebContainer . boot ( options )
33
+ localBootStatus . set ( 'booted' ) ;
34
+ return webcontainer ;
36
35
}
37
36
38
37
export function unblockBoot ( ) {
You can’t perform that action at this time.
0 commit comments