diff options
Diffstat (limited to 'ui/lib')
-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..8a8591c1a --- /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
\ No newline at end of file |