mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-29 21:16:40 +07:00
typed more utils
This commit is contained in:
parent
5c3f09ec2c
commit
ca9f6627c4
9 changed files with 113 additions and 93 deletions
3
src/utils/window.ts
Normal file
3
src/utils/window.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
import { MOBILE_BREAKPOINT } from '$config/frontend';
|
||||
|
||||
export const isMobile = (): boolean => (window.innerWidth <= MOBILE_BREAKPOINT);
|
Loading…
Add table
Add a link
Reference in a new issue