Fix scroll position on Settings deep links

This commit is contained in:
Noah Petherbridge 2024-11-24 13:50:16 -08:00
parent f7b7327779
commit 953d4125f6

View File

@ -1599,16 +1599,16 @@ window.addEventListener("DOMContentLoaded", (event) => {
} }
window.requestAnimationFrame(() => { window.requestAnimationFrame(() => {
window.scrollTo(0, 0); window.location.hash = window.location.hash;
}); });
}); });
}) })
// Show the requested tab on first page load. // Show the requested tab on first page load.
showTab(window.location.hash.replace(/^#/, '')); showTab(window.location.hash.replace(/^#/, ''));
// window.requestAnimationFrame(() => { window.requestAnimationFrame(() => {
// window.scrollTo(0, 0); window.location.hash = window.location.hash;
// }); });
}); });
// Look & Feel tab scripts. // Look & Feel tab scripts.