Explorar o código

fix: solve navigator undefined && merge from main

leedom %!s(int64=2) %!d(string=hai) anos
pai
achega
00d45e7cc4
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      app/utils.ts

+ 3 - 1
app/utils.ts

@@ -52,7 +52,9 @@ export function isMobileScreen() {
 }
 
 export function isFirefox() {
-  return /firefox/i.test(navigator.userAgent);
+  return (
+    typeof navigator !== "undefined" && /firefox/i.test(navigator.userAgent)
+  );
 }
 
 export function selectOrCopy(el: HTMLElement, content: string) {