diff options
Diffstat (limited to 'ui/lib/is-mobile-view.js')
-rw-r--r-- | ui/lib/is-mobile-view.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/lib/is-mobile-view.js b/ui/lib/is-mobile-view.js new file mode 100644 index 000000000..78fd6cb54 --- /dev/null +++ b/ui/lib/is-mobile-view.js @@ -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 |