fix: webauthn support check (#2450)

This commit is contained in:
Livio Amstutz
2021-10-02 12:26:03 +02:00
committed by GitHub
parent b71413fa6c
commit 415d0c7ab2
5 changed files with 5 additions and 7 deletions
@@ -1,7 +1,7 @@
function checkWebauthnSupported(button, func) {
let support = document.getElementsByClassName("wa-support");
let noSupport = document.getElementsByClassName("wa-no-support");
if (typeof (PublicKeyCredential) === undefined) {
if (!window.PublicKeyCredential) {
for (let item of noSupport) {
item.classList.remove('hidden');
}