Skip to content

Commit

Permalink
Run detectWebAuthnSupport only on sign-in page (#31676)
Browse files Browse the repository at this point in the history
Fix #31675, regression of #31504.
  • Loading branch information
wolfogre authored Jul 23, 2024
1 parent 2f1cb1d commit bbd1476
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web_src/js/features/user-auth-webauthn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ import {GET, POST} from '../modules/fetch.ts';
const {appSubUrl} = window.config;

export async function initUserAuthWebAuthn() {
if (!document.querySelector('.user.signin')) {
return;
}

if (!detectWebAuthnSupport()) {
return;
}
Expand Down

0 comments on commit bbd1476

Please sign in to comment.