fix: ehm un bug stupido
This commit is contained in:
+1
-1
@@ -34,7 +34,7 @@ export const App = ({ url }: { url?: string }) => {
|
|||||||
|
|
||||||
const handleRouteChange = () => {
|
const handleRouteChange = () => {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
if (window.goatcounter) {
|
if (typeof window !== 'undefined' && window.goatcounter) {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
window.goatcounter.count({
|
window.goatcounter.count({
|
||||||
path: location.pathname + location.search + location.hash,
|
path: location.pathname + location.search + location.hash,
|
||||||
|
|||||||
Reference in New Issue
Block a user