mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 08:13:43 +08:00 
			
		
		
		
	fix: solve navigator undefined && merge from main
This commit is contained in:
		@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user