aboutsummaryrefslogblamecommitdiffstats
path: root/ui/lib/is-mobile-view.js
blob: 78fd6cb5433f9ba833fc15de737c9aa2464f3e58 (plain) (tree)
1
2
3
4
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