aling handshake status with UI
This commit is contained in:
parent
2fdda92a82
commit
827809532a
|
@ -98,6 +98,7 @@ function getSenderAndResponder(node) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function confirmAuthCodeFlow(pairingObj) {
|
async function confirmAuthCodeFlow(pairingObj) {
|
||||||
|
handshakeStatusSpan.innerHTML = "executing handshake...";
|
||||||
const authCode = await pairingObj.getAuthCode();
|
const authCode = await pairingObj.getAuthCode();
|
||||||
pairingObj.validateAuthCode(confirm("Confirm that authcode is: " + authCode));
|
pairingObj.validateAuthCode(confirm("Confirm that authcode is: " + authCode));
|
||||||
}
|
}
|
||||||
|
@ -247,14 +248,14 @@ async function main() {
|
||||||
disableUI();
|
disableUI();
|
||||||
console.error(err);
|
console.error(err);
|
||||||
} else {
|
} else {
|
||||||
handshakeStatusSpan.innerHTML = "waiting for handshake to start";
|
handshakeStatusSpan.innerHTML = "waiting for handshake";
|
||||||
qrUrl.href = qrURLString;
|
qrUrl.href = qrURLString;
|
||||||
qrUrl.style.display = "block";
|
qrUrl.style.display = "block";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
handshakeStatusSpan.innerHTML = "executing handshake...";
|
handshakeStatusSpan.innerHTML = "waiting for handshake";
|
||||||
|
|
||||||
[encoder, decoder] = await pExecute;
|
[encoder, decoder] = await pExecute;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue