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!

fix ts error

Maksim Mrug993cbd3b5d07
diff --git a/app/entry.client.tsx b/app/entry.client.tsx
index 18ce3b51e..20da97836 100644
--- a/app/entry.client.tsx
+++ b/app/entry.client.tsx
@@ -36,7 +36,8 @@ async function hydrate() {
setItem('i18nextLng', defaultLanguage)
}
- const language = navigator.language || navigator.userLanguage
+ // @ts-ignore
+ const language = navigator.language || navigator?.userLanguage
if (_isString(language)) {
const subLanguage = language.substring(0, 2)