Skip to content

Commit bbd1476

Browse files
authored
Run detectWebAuthnSupport only on sign-in page (#31676)
Fix #31675, regression of #31504.
1 parent 2f1cb1d commit bbd1476

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

web_src/js/features/user-auth-webauthn.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ import {GET, POST} from '../modules/fetch.ts';
55
const {appSubUrl} = window.config;
66

77
export async function initUserAuthWebAuthn() {
8+
if (!document.querySelector('.user.signin')) {
9+
return;
10+
}
11+
812
if (!detectWebAuthnSupport()) {
913
return;
1014
}

0 commit comments

Comments
 (0)