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) {
|
||||
handshakeStatusSpan.innerHTML = "executing handshake...";
|
||||
const authCode = await pairingObj.getAuthCode();
|
||||
pairingObj.validateAuthCode(confirm("Confirm that authcode is: " + authCode));
|
||||
}
|
||||
|
@ -247,14 +248,14 @@ async function main() {
|
|||
disableUI();
|
||||
console.error(err);
|
||||
} else {
|
||||
handshakeStatusSpan.innerHTML = "waiting for handshake to start";
|
||||
handshakeStatusSpan.innerHTML = "waiting for handshake";
|
||||
qrUrl.href = qrURLString;
|
||||
qrUrl.style.display = "block";
|
||||
}
|
||||
});
|
||||
|
||||
try {
|
||||
handshakeStatusSpan.innerHTML = "executing handshake...";
|
||||
handshakeStatusSpan.innerHTML = "waiting for handshake";
|
||||
|
||||
[encoder, decoder] = await pExecute;
|
||||
|
||||
|
|
Loading…
Reference in New Issue