From af8a760c121ca7b16ef0611267c32587f86c8267 Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Wed, 11 Jan 2023 19:03:05 +0100 Subject: [PATCH] fix: ehm un bug stupido --- client/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/App.tsx b/client/App.tsx index 26bc63f..645d360 100644 --- a/client/App.tsx +++ b/client/App.tsx @@ -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,