mirror of
https://github.com/go-gitea/gitea.git
synced 2026-01-08 03:54:35 +01:00
backport #36165 Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
parent
a99ccfdf74
commit
522cc25921
@ -11,13 +11,8 @@ export async function initUserAuthWebAuthn() {
|
||||
return;
|
||||
}
|
||||
|
||||
// webauthn is only supported on secure contexts
|
||||
if (!window.isSecureContext) {
|
||||
hideElem(elSignInPasskeyBtn);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!detectWebAuthnSupport()) {
|
||||
if (elSignInPasskeyBtn) hideElem(elSignInPasskeyBtn);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user