mirror of
https://github.com/lukin/keywind.git
synced 2025-01-10 09:56:25 +00:00
fix: invocation of getTransports call
This commit is contained in:
parent
b19f31a109
commit
65cde81546
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue