Final touches

This commit is contained in:
Angelos Chalaris
2019-08-30 19:30:46 +03:00
parent abaa07a82f
commit dc7f8f0008
2 changed files with 9 additions and 5 deletions

View File

@ -17,7 +17,6 @@ const onPreRouteUpdate = ({ location, prevLocation }) => {
};
const onRouteUpdate = ({ location, prevLocation }) => {
console.log(locationScrollTops)
try {
if (locationScrollTops[location.pathname]) {
document.querySelector('.content').scrollTop = locationScrollTops[location.pathname];