Merge pull request #726 from slumbering/fix-window-location
check window location
This commit is contained in:
commit
a5a995bb49
@ -169,7 +169,7 @@ function DocPage(props) {
|
|||||||
amplitude.getInstance().logEvent('Docs Viewed', { "hostname": window.location.hostname, "path": window.location.pathname });
|
amplitude.getInstance().logEvent('Docs Viewed', { "hostname": window.location.hostname, "path": window.location.pathname });
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}, [window.location.pathname])
|
}, [(typeof window !== "undefined" && window.location.pathname)])
|
||||||
|
|
||||||
if (isLoading) return <Spinner />
|
if (isLoading) return <Spinner />
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user