Last active
March 29, 2019 16:27
-
-
Save mikaelhadler/7c11f39978b201a7d79c2d3a181262b9 to your computer and use it in GitHub Desktop.
Function return true when device is mobile and false else
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
return $window.screen.width <= 767 ? true : false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment