2017-08-08 17:50:29 -07:00
|
|
|
// Checks if viewport at invoke time fits mobile dimensions
|
|
|
|
// isMobileView :: () => Bool
|
2017-08-29 07:50:48 -07:00
|
|
|
const isMobileView = () => window.matchMedia('screen and (max-width: 575px)').matches
|
2017-08-08 17:50:29 -07:00
|
|
|
|
2017-08-29 07:50:48 -07:00
|
|
|
module.exports = isMobileView
|