mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-09 14:43:03 -04:00
Fix settings on Vencord Mobile (#905)
This commit is contained in:
parent
6c719f5ee9
commit
db7fc3769b
4 changed files with 30 additions and 12 deletions
|
@ -204,3 +204,7 @@ export const checkIntersecting = (el: Element) => {
|
|||
export function identity<T>(value: T): T {
|
||||
return value;
|
||||
}
|
||||
|
||||
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent#mobile_tablet_or_desktop
|
||||
// "In summary, we recommend looking for the string Mobi anywhere in the User Agent to detect a mobile device."
|
||||
export const isMobile = navigator.userAgent.includes("Mobi");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue