browsernizr
Version:
Modernizr wrapper for use with browserify
32 lines (28 loc) • 785 B
JavaScript
/*!
{
"name": "PublicKeyCredential",
"notes": [
{
"name": "MDN Documentation",
"href": "https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential"
},
{
"name": "Google Developers solution",
"href": "https://developers.google.com/web/updates/2018/03/webauthn-credential-management#the_solution"
}
],
"property": "publicKeyCredential",
"tags": ["webauthn", "web authentication"],
"authors": ["Eric Delia"]
}
!*/
/* DOC
Detects support for PublicKeyCredential as part of the Web Authentication API (also known as webauthn)
*/
var Modernizr = require('./../../lib/Modernizr.js');
Modernizr.addTest('publicKeyCredential', function() {
if (window.PublicKeyCredential) {
return true;
}
return false;
});