Run detectWebAuthnSupport
only on sign-in page (#31676)
Fix #31675, regression of #31504.
This commit is contained in:
parent
2f1cb1d289
commit
bbd14769cd
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue