fix: ehm un bug stupido

pull/1/head
Antonio De Lucreziis 2 years ago
parent d3d1bb24d7
commit af8a760c12

@ -34,7 +34,7 @@ export const App = ({ url }: { url?: string }) => {
const handleRouteChange = () => {
// @ts-ignore
if (window.goatcounter) {
if (typeof window !== 'undefined' && window.goatcounter) {
// @ts-ignore
window.goatcounter.count({
path: location.pathname + location.search + location.hash,

Loading…
Cancel
Save