Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
<script>

$(document).ready(function () {

if (!window.isSecureContext) {
alert("Error: WebAuthentication is only available in a secure context (localhost or https://)");
return;
}
// check whether current browser supports WebAuthn
if (!window.PublicKeyCredential) {
alert("Error: this browser does not support WebAuthn");
Expand Down Expand Up @@ -167,4 +170,4 @@
</script>
</body>

</html>
</html>