mirror of https://github.com/msgbyte/tailchat
feat: add device helper for mobile in api
parent
e73046e7d5
commit
09200ad339
@ -0,0 +1,3 @@
|
||||
export function isMobile(): boolean {
|
||||
return window.document.body.clientWidth < 768;
|
||||
}
|
Loading…
Reference in New Issue