improve alignment of UI state to handshake status

This commit is contained in:
weboko 2023-01-12 01:27:42 +01:00
parent 827809532a
commit f11324c47f
No known key found for this signature in database

View File

@ -98,8 +98,8 @@ function getSenderAndResponder(node) {
}
async function confirmAuthCodeFlow(pairingObj) {
handshakeStatusSpan.innerHTML = "executing handshake...";
const authCode = await pairingObj.getAuthCode();
handshakeStatusSpan.innerHTML = "executing handshake";
pairingObj.validateAuthCode(confirm("Confirm that authcode is: " + authCode));
}
@ -248,14 +248,14 @@ async function main() {
disableUI();
console.error(err);
} else {
handshakeStatusSpan.innerHTML = "waiting for handshake";
handshakeStatusSpan.innerHTML = "waiting for handshake...";
qrUrl.href = qrURLString;
qrUrl.style.display = "block";
}
});
try {
handshakeStatusSpan.innerHTML = "waiting for handshake";
handshakeStatusSpan.innerHTML = "waiting for handshake...";
[encoder, decoder] = await pExecute;