summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Martin Trapp <martrapp@users.noreply.github.com> 2024-04-04 17:06:11 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2024-04-04 17:06:11 +0000
commit3bd6758e1cdd4be617a8c69ac7c94c4d0dab0999 (patch)
tree37a94b0ec928939ea7f8a46e4672a815e431cfa7
parentca6bb1f31ef041e6ccf8ef974856fa945ff5bb31 (diff)
downloadastro-3bd6758e1cdd4be617a8c69ac7c94c4d0dab0999.tar.gz
astro-3bd6758e1cdd4be617a8c69ac7c94c4d0dab0999.tar.zst
astro-3bd6758e1cdd4be617a8c69ac7c94c4d0dab0999.zip
[ci] format
-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 9d7e39e5e..0084a9d74 100644
--- a/packages/astro/src/transitions/router.ts
+++ b/packages/astro/src/transitions/router.ts
@@ -207,8 +207,8 @@ const moveToLocation = (
location.href = to.href; // this kills the history state on Firefox
if (!history.state) {
replaceState(savedState, ''); // this restores the history state
- if (intraPage){
- window.dispatchEvent(new PopStateEvent('popstate' ));
+ if (intraPage) {
+ window.dispatchEvent(new PopStateEvent('popstate'));
}
}
} else {