From ef11cf94b189ba4595a027491135e53a17878f5b Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 10 Apr 2024 20:04:12 +0200 Subject: fixup! Scroll to top of page when clicking item --- web/script/transition.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/script/transition.ts') diff --git a/web/script/transition.ts b/web/script/transition.ts index 26630ee..5e8e9e2 100644 --- a/web/script/transition.ts +++ b/web/script/transition.ts @@ -70,7 +70,7 @@ function prepare_load(href: string, back?: boolean) { document.head.innerHTML = head document.body.outerHTML = body globalThis.dispatchEvent(new Event("DOMContentLoaded")) - window.scrollTo({ top: 0 }); + globalThis.scrollTo({ top: 0 }); fade(true) } } -- cgit v1.2.3-70-g09d2