Created
May 20, 2020 08:55
-
-
Save svebal/358b3153129ad8e141bcaafc7a5ea661 to your computer and use it in GitHub Desktop.
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
let isIPadOs = function() { | |
return window.AuthenticatorAssertionResponse === undefined | |
&& window.AuthenticatorAttestationResponse === undefined | |
&& window.AuthenticatorResponse === undefined | |
&& window.Credential === undefined | |
&& window.CredentailsContainer === undefined | |
&& window.DeviceMotionEvent !== undefined | |
&& window.DeviceOrientationEvent !== undefined | |
&& navigator.maxTouchPoints === 5 | |
&& navigator.plugins.length === 0 | |
&& navigator.platform !== "iPhone"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment