<!DOCTYPE html>
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<title>window.PublicKeyCredential</title>
<script>
function main() {
if (! window.PublicKeyCredential) {
alert('The browser does not support WebAuthn');
return;
}
// let cred = navigator.credentials.create(…);
}
</script>
</head>
<body onload='main()'>
</body>
</html>