From aad756297c7515386b108ee046e37d6295d7fd91 Mon Sep 17 00:00:00 2001 From: martrapp Date: Wed, 27 Sep 2023 13:33:07 +0000 Subject: [PATCH] [ci] format --- packages/astro/components/ViewTransitions.astro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/astro/components/ViewTransitions.astro b/packages/astro/components/ViewTransitions.astro index 65a7af8a4..e1df9efa7 100644 --- a/packages/astro/components/ViewTransitions.astro +++ b/packages/astro/components/ViewTransitions.astro @@ -26,7 +26,7 @@ const { fallback = 'animate' } = Astro.props as Props; return 'animate'; } - // Prefetching + // Prefetching function maybePrefetch(pathname: string) { if (document.querySelector(`link[rel=prefetch][href="${pathname}"]`)) return; // @ts-expect-error: connection might exist @@ -75,7 +75,7 @@ const { fallback = 'animate' } = Astro.props as Props; }); }); - ['mouseenter', 'touchstart', 'focus'].forEach((evName) => { + ['mouseenter', 'touchstart', 'focus'].forEach((evName) => { document.addEventListener( evName, (ev) => {