Skip to content

Instantly share code, notes, and snippets.

@svebal
Created May 20, 2020 08:55
Show Gist options
  • Save svebal/358b3153129ad8e141bcaafc7a5ea661 to your computer and use it in GitHub Desktop.
Save svebal/358b3153129ad8e141bcaafc7a5ea661 to your computer and use it in GitHub Desktop.
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