From c9cde7e8e0dd445072bab698611d2e0221cc49e0 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Wed, 13 Mar 2024 09:56:30 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/transitions/router.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/astro/src/transitions/router.ts b/packages/astro/src/transitions/router.ts index 9efb3a4577e2..69f4e717c351 100644 --- a/packages/astro/src/transitions/router.ts +++ b/packages/astro/src/transitions/router.ts @@ -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(async (r) => {