mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-03 16:46:40 +08:00
Merge branch 'main' of https://github.com/Yidadaa/ChatGPT-Next-Web
This commit is contained in:
commit
ace29d88eb
@ -98,13 +98,6 @@ export function useMobileScreen() {
|
|||||||
return width <= MOBILE_MAX_WIDTH;
|
return width <= MOBILE_MAX_WIDTH;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function isMobileScreen() {
|
|
||||||
if (typeof window === "undefined") {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return window.innerWidth <= MOBILE_MAX_WIDTH;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function isFirefox() {
|
export function isFirefox() {
|
||||||
return (
|
return (
|
||||||
typeof navigator !== "undefined" && /firefox/i.test(navigator.userAgent)
|
typeof navigator !== "undefined" && /firefox/i.test(navigator.userAgent)
|
||||||
|
Loading…
Reference in New Issue
Block a user