mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Implement utility helper for checking viewport size in js
This commit is contained in:
parent
928adae104
commit
e260ab46cb
5
ui/lib/is-mobile-view.js
Normal file
5
ui/lib/is-mobile-view.js
Normal file
@ -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
Block a user