Created
August 21, 2019 08:09
-
-
Save makingthingswork/72765f6ef79d30c53d80fc4dddbab0d1 to your computer and use it in GitHub Desktop.
Check for iOS and add class to html
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
if(navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad)/)) { $('html').addClass('ios'); } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment