mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
[ci] format
This commit is contained in:
parent
dfd146f591
commit
c9cde7e8e0
1 changed files with 2 additions and 2 deletions
|
@ -716,8 +716,8 @@ async function prepareForClientOnlyComponents(newDocument: Document, toLocation:
|
|||
|
||||
// return a promise that resolves when all astro-islands are hydrated
|
||||
async function hydrationDone(loadingPage: HTMLIFrameElement) {
|
||||
await new Promise(
|
||||
(r) => loadingPage.contentWindow?.addEventListener('load', r, { once: true })
|
||||
await new Promise((r) =>
|
||||
loadingPage.contentWindow?.addEventListener('load', r, { once: true })
|
||||
);
|
||||
|
||||
return new Promise<void>(async (r) => {
|
||||
|
|
Loading…
Reference in a new issue