aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/+page.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/+page.svelte')
-rw-r--r--src/routes/+page.svelte3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index d047f05..d96dda2 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -36,7 +36,8 @@
skipAnimation?: boolean;
} = $props();
onMount(() => {
- if (skipAnimation) window.history.pushState({}, "", "/skip-animation");
+ if (skipAnimation && location.pathname !== "/skip-animation")
+ history.replaceState({}, "", "/skip-animation");
});
let isScripted = $state(false);