summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthewp@users.noreply.github.com> 2023-12-14 15:21:57 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2023-12-14 15:21:57 +0000
commit745294de941492b88c1a014be419ebd9720c0904 (patch)
tree9dd04b468b148f9eed36129a83a487362ccb3c0f
parent151bd429b11a73d236ca8f43e8f5072e7c29641e (diff)
downloadastro-745294de941492b88c1a014be419ebd9720c0904.tar.gz
astro-745294de941492b88c1a014be419ebd9720c0904.tar.zst
astro-745294de941492b88c1a014be419ebd9720c0904.zip
[ci] format
Diffstat (limited to '')
-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 = () =>