From 582b642bc89b80f31756abafb11fbe90cd4d0a4b Mon Sep 17 00:00:00 2001 From: ndom91 Date: Thu, 11 Jul 2024 13:23:46 +0200 Subject: [PATCH] fix: revert --- src/components/analytics.jsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/analytics.jsx b/src/components/analytics.jsx index 3145af1..486e929 100644 --- a/src/components/analytics.jsx +++ b/src/components/analytics.jsx @@ -7,10 +7,7 @@ import { usePathname } from 'next/navigation' function SwetrixComponent() { const pathname = usePathname() - if ( - typeof window !== 'undefined' && - window.location.host === 'briefkastenhq.com' - ) { + if (window.location.host === 'briefkastenhq.com') { Swetrix.init(process.env.NEXT_PUBLIC_SWETRIX_PROJECT, { apiURL: process.env.NEXT_PUBLIC_SWETRIX_API_HOST, })