Specify cron target

This commit is contained in:
Ben Grant 2021-06-17 12:18:52 +10:00
parent 58c783d9fc
commit 3bd591e22b
2 changed files with 3 additions and 5 deletions

View file

@ -74,11 +74,7 @@ const Settings = () => {
});
// Reset scroll on navigation
useEffect(() => {
document.documentElement.style.scrollBehavior = 'auto';
window.scrollTo(0, 0);
document.documentElement.style.scrollBehavior = 'smooth';
}, [pathname]);
useEffect(() => window.scrollTo(0, 0), [pathname]);
return (
<>