Implement utility helper for checking viewport size in js
This commit is contained in:
parent
928adae104
commit
e260ab46cb
|
@ -0,0 +1,5 @@
|
|||
// Checks if viewport at invoke time fits mobile dimensions
|
||||
// isMobileView :: () => Bool
|
||||
const isMobileView = () => window.matchMedia("screen and (max-width: 575px)").matches
|
||||
|
||||
module.exports = isMobileView
|
Loading…
Reference in New Issue