fix: ehm un bug stupido
This commit is contained in:
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user