Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

remove debug -- swetrix:*

Blue Mouse53ad17155a37
diff --git a/web/app/root.tsx b/web/app/root.tsx
index 2244c115b..54b293272 100644
--- a/web/app/root.tsx
+++ b/web/app/root.tsx
@@ -13,7 +13,7 @@ import {
useRouteError,
} from '@remix-run/react'
import { store } from '~/lib/store'
-import { isBrowser, CONTACT_EMAIL, LS_THEME_SETTING, isSelfhosted, I18N_CACHE_BREAKER } from '~/lib/constants'
+import { CONTACT_EMAIL, LS_THEME_SETTING, isSelfhosted, I18N_CACHE_BREAKER } from '~/lib/constants'
import { ExternalScripts } from 'remix-utils/external-scripts'
import { getCookie, generateCookieString } from '~/utils/cookie'
import { ExclamationTriangleIcon, ChevronDownIcon, ChevronUpIcon } from '@heroicons/react/24/outline'
@@ -52,10 +52,6 @@ declare global {
}
}
-if (isBrowser && process.env.NODE_ENV !== 'production') {
- localStorage.debug = 'swetrix:*'
-}
-
export const links: LinksFunction = () => [
{ rel: 'stylesheet', href: tailwindCss },
{ rel: 'stylesheet', href: sonnerCss },