Created
November 27, 2018 09:30
-
-
Save fongreecss/0c2975de6dbce727588f1c3abdcf4d7a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function isIOS() { | |
var userAgent = navigator.userAgent || navigator.vendor || window.opera; | |
// iOS detection from: http://stackoverflow.com/a/9039885/177710 | |
return (/iPad|iPhone|iPod/.test(userAgent) && !window.MSStream); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment