mirror of
https://github.com/go-gitea/gitea
synced 2024-06-14 07:15:47 +00:00
Backport #18385
This commit is contained in:
parent
42991dc89a
commit
b68e605d56
|
@ -150,13 +150,12 @@ export function initUserAuthWebAuthnRegister() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!detectWebAuthnSupport()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$('#webauthn-error').modal({allowMultiple: false});
|
$('#webauthn-error').modal({allowMultiple: false});
|
||||||
$('#register-webauthn').on('click', (e) => {
|
$('#register-webauthn').on('click', (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
if (!detectWebAuthnSupport()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
webAuthnRegisterRequest();
|
webAuthnRegisterRequest();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user