fix: invocation of getTransports call

This commit is contained in:
Klaus Betz 2024-05-16 11:45:57 +02:00 committed by GitHub
parent b19f31a109
commit 65cde81546
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -171,8 +171,6 @@ document.addEventListener('alpine:init', () => {
result instanceof PublicKeyCredential && result instanceof PublicKeyCredential &&
result.response instanceof AuthenticatorAttestationResponse result.response instanceof AuthenticatorAttestationResponse
) { ) {
const { getTransports } = result.response;
window.result = result; window.result = result;
const publicKeyCredentialId = result.rawId; const publicKeyCredentialId = result.rawId;
@ -192,8 +190,8 @@ document.addEventListener('alpine:init', () => {
{ pad: false } { pad: false }
); );
if (typeof getTransports === 'function') { if (typeof result.response.getTransports === 'function') {
const transports = getTransports(); const transports = result.response.getTransports();
if (transports) { if (transports) {
transportsInput.value = getTransportsAsString(transports); transportsInput.value = getTransportsAsString(transports);