typed more utils

This commit is contained in:
muerwre 2019-02-21 14:42:59 +07:00
parent 5c3f09ec2c
commit ca9f6627c4
9 changed files with 113 additions and 93 deletions

3
src/utils/window.ts Normal file
View file

@ -0,0 +1,3 @@
import { MOBILE_BREAKPOINT } from '$config/frontend';
export const isMobile = (): boolean => (window.innerWidth <= MOBILE_BREAKPOINT);