A Metamask fork with Infura removed and default networks editable
ciphermask/ui/helpers/utils/is-mobile-view.js

7 lines
216 B

// Checks if viewport at invoke time fits mobile dimensions
// isMobileView :: () => Bool
const isMobileView = () =>
window.matchMedia('screen and (max-width: $break-small)').matches;
export default isMobileView;