Attempting to resolve scroll restoration

This commit is contained in:
James Barnsley
2018-02-16 16:58:46 +13:00
parent 5a8eca13be
commit 7d1819e9bd
46 changed files with 353 additions and 140 deletions

View File

@ -47,10 +47,8 @@ console.error = function(message, error){
// setup our analytics tracking
ReactGA.initialize('UA-64701652-3');
function handleUpdate(){
ReactGA.set({ page: window.location.hash })
ReactGA.pageview(window.location.hash)
$(window).scrollTop(0)
store.dispatch({type: 'HIDE_CONTEXT_MENU'})
ReactGA.set({ page: window.location.hash });
ReactGA.pageview(window.location.hash);
}
global.baseURL = '/'