Skip to content

Commit 522cc25

Browse files
a1012112796lunny
andauthored
fix webAuthn insecure error view (#36165) (#36179)
backport #36165 Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
1 parent a99ccfd commit 522cc25

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,8 @@ export async function initUserAuthWebAuthn() {
1111
return;
1212
}
1313

14-
// webauthn is only supported on secure contexts
15-
if (!window.isSecureContext) {
16-
hideElem(elSignInPasskeyBtn);
17-
return;
18-
}
19-
2014
if (!detectWebAuthnSupport()) {
15+
if (elSignInPasskeyBtn) hideElem(elSignInPasskeyBtn);
2116
return;
2217
}
2318

0 commit comments

Comments
 (0)