SyntaxFix
Write A Post
Hire A Developer
Questions
return 'ontouchstart' in window && window.screen.availWidth < 768
How about this, it expands on answer above but also checks the screen size