fix: ehm un bug stupido

This commit is contained in:
2023-01-11 19:03:05 +01:00
parent d3d1bb24d7
commit af8a760c12
+1 -1
View File
@@ -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,