Skip to content

Commit e57af6c

Browse files
NemikolhAriPerkkio
andauthored
Apply suggestions from code review
Co-authored-by: Ari Perkkiö <[email protected]>
1 parent 1589fb2 commit e57af6c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

packages/astro/src/default/components/PageLoadingIndicator.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</div>
99
</div>
1010
<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');
1212
const storageKey = 'tk_plid';
1313
const maxDurationWithoutProgressBar = 500;
1414

packages/runtime/src/webcontainer/on-demand-boot.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ export async function safeBoot(options: BootOptions) {
2929
localBootStatus.set('booting');
3030
}
3131

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;
3635
}
3736

3837
export function unblockBoot() {

0 commit comments

Comments
 (0)