mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 19:38:23 +00:00 
			
		
		
		
	Run detectWebAuthnSupport only on sign-in page (#31676)
				
					
				
			Fix #31675, regression of #31504.
This commit is contained in:
		| @@ -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; | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user