Error: Authenticator has already been registered
This commit is contained in:
parent
00c1b4cf93
commit
c825a21b19
1 changed files with 6 additions and 1 deletions
|
@ -102,7 +102,12 @@ let register_view origin user =
|
|||
});
|
||||
});
|
||||
}).catch(function (err) {
|
||||
// XXX: only if the exception came from navigator.credentials.create()
|
||||
if (err.name === "InvalidStateError") {
|
||||
alert("authenticator already registered");
|
||||
} else {
|
||||
alert("exception: " + err);
|
||||
}
|
||||
window.location = "/";
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue