We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 141b8b5 commit d3663d7Copy full SHA for d3663d7
WebAuthn.js
@@ -7,6 +7,11 @@ function TfaWebAuthn_addkey() {
7
var json = JSON.parse(createDataRaw);
8
9
recursiveBase64StrToArrayBuffer(json);
10
+
11
+ if (!window.fetch || !navigator.credentials || !navigator.credentials.create) {
12
+ window.alert('Browser does not support WebAuthn.');
13
+ return;
14
+ }
15
16
navigator.credentials.create(json).then(function(f) {
17
console.log(f);
0 commit comments