diff options
author | metamuffin <metamuffin@disroot.org> | 2024-04-10 20:04:12 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-04-10 20:04:12 +0200 |
commit | ef11cf94b189ba4595a027491135e53a17878f5b (patch) | |
tree | 5d5ac038f63240c609067b66c7ed52bce1fdf37e /web/script | |
parent | 5a12f665ea751534af60970e0f5f7607710bc193 (diff) | |
download | jellything-ef11cf94b189ba4595a027491135e53a17878f5b.tar jellything-ef11cf94b189ba4595a027491135e53a17878f5b.tar.bz2 jellything-ef11cf94b189ba4595a027491135e53a17878f5b.tar.zst |
fixup! Scroll to top of page when clicking item
Diffstat (limited to 'web/script')
-rw-r--r-- | web/script/transition.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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) } } |