mirror of
https://github.com/lukin/keywind.git
synced 2025-01-09 17:36: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.response instanceof AuthenticatorAttestationResponse
|
||||
) {
|
||||
const { getTransports } = result.response;
|
||||
|
||||
window.result = result;
|
||||
|
||||
const publicKeyCredentialId = result.rawId;
|
||||
|
@ -192,8 +190,8 @@ document.addEventListener('alpine:init', () => {
|
|||
{ pad: false }
|
||||
);
|
||||
|
||||
if (typeof getTransports === 'function') {
|
||||
const transports = getTransports();
|
||||
if (typeof result.response.getTransports === 'function') {
|
||||
const transports = result.response.getTransports();
|
||||
|
||||
if (transports) {
|
||||
transportsInput.value = getTransportsAsString(transports);
|
||||
|
|
Loading…
Reference in a new issue