Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Adebiyiart7 authored Jan 25, 2023
1 parent 753288b commit 4a2a221
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
<title>Document</title>
</head>
<body>
<button>Click</button>
<button onclick="auth()">Click</button>
</body>
<script>
// Check if the browser supports biometric authentication
function auth () {
// Check if the browser supports biometric authentication
if ("credentials" in navigator) {
// Request biometric authentication
navigator.credentials
Expand Down Expand Up @@ -43,5 +44,6 @@
} else {
alert("This browser does not support biometric authentication.");
}
}
</script>
</html>

0 comments on commit 4a2a221

Please sign in to comment.