Skip to content

Instantly share code, notes, and snippets.

@mikaelhadler
Last active March 29, 2019 16:27
Show Gist options
  • Save mikaelhadler/7c11f39978b201a7d79c2d3a181262b9 to your computer and use it in GitHub Desktop.
Save mikaelhadler/7c11f39978b201a7d79c2d3a181262b9 to your computer and use it in GitHub Desktop.
Function return true when device is mobile and false else
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