1
0
Fork 0

Prevent showing webauthn error for every time visiting /user/settings/security (#18385)

This commit is contained in:
wxiaoguang 2022-01-25 03:57:01 +08:00 committed by GitHub
parent 5506cb92da
commit 9837773f0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
}); });
} }