mirror of
https://github.com/go-gitea/gitea.git
synced 2026-02-07 09:49:41 +09:00
backport #36165 Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user