Skip to content
Merged
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
Prevent showing webauthn error for every time visiting `/user/setting…
…s/security`
  • Loading branch information
wxiaoguang committed Jan 24, 2022
commit fcedced2d16308d2f3d32afc500905645bbfc873
7 changes: 3 additions & 4 deletions web_src/js/features/user-auth-webauthn.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,12 @@ export function initUserAuthWebAuthnRegister() {
return;
}

if (!detectWebAuthnSupport()) {
return;
}

$('#webauthn-error').modal({allowMultiple: false});
$('#register-webauthn').on('click', (e) => {
e.preventDefault();
if (!detectWebAuthnSupport()) {
return;
}
webAuthnRegisterRequest();
});
}
Expand Down