From c009b9c19af23c06580964b2cfa2bcd272de2c56 Mon Sep 17 00:00:00 2001 From: memdmp Date: Sun, 12 Jan 2025 07:20:58 +0100 Subject: feat: things --- src/routes/+page.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/routes/+page.svelte') 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); -- cgit v1.2.3