0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

[ci] format

This commit is contained in:
Emanuele Stoppa 2024-03-13 09:56:30 +00:00 committed by astrobot-houston
parent dfd146f591
commit c9cde7e8e0

View file

@ -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) => {