WebAuthN: Replace sr-only with hidden css-class

This commit is contained in:
Martin Gross
2025-05-22 17:13:11 +02:00
parent 7756b6745c
commit 465171f323
4 changed files with 5 additions and 5 deletions

View File

@@ -145,7 +145,7 @@ const startRegister = async (e) => {
publicKey: publicKeyCredentialCreateOptions
});
} catch (err) {
$("#webauthn-error").removeClass("sr-only");
$("#webauthn-error").removeClass("hidden");
return console.error("Error creating credential:", err);
}
@@ -170,7 +170,7 @@ const startLogin = async (e) => {
publicKey: transformedCredentialRequestOptions,
});
} catch (err) {
$("#webauthn-error").removeClass("sr-only");
$("#webauthn-error").removeClass("hidden");
return console.error("Error when creating credential:", err);
}