summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/src/transitions/router.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/astro/src/transitions/router.ts b/packages/astro/src/transitions/router.ts
index b2cfbca6a..e710c2e1b 100644
--- a/packages/astro/src/transitions/router.ts
+++ b/packages/astro/src/transitions/router.ts
@@ -13,7 +13,8 @@ type Events = 'astro:page-load' | 'astro:after-swap';
// which breaks Firefox.
const inBrowser = import.meta.env.SSR === false;
const pushState = (inBrowser && history.pushState.bind(history)) as typeof history.pushState;
-const replaceState = (inBrowser && history.replaceState.bind(history)) as typeof history.replaceState;
+const replaceState = (inBrowser &&
+ history.replaceState.bind(history)) as typeof history.replaceState;
// only update history entries that are managed by us
// leave other entries alone and do not accidently add state.
@@ -24,7 +25,6 @@ export const updateScrollPosition = (positions: { scrollX: number; scrollY: numb
}
};
-
export const supportsViewTransitions = inBrowser && !!document.startViewTransition;
export const transitionEnabledOnThisPage = () =>