From 827809532a53ba3589d0f7c45d2bf55850824890 Mon Sep 17 00:00:00 2001 From: weboko Date: Thu, 12 Jan 2023 01:24:21 +0100 Subject: [PATCH] aling handshake status with UI --- examples/noise-js/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/noise-js/index.js b/examples/noise-js/index.js index a70e200..052f65f 100644 --- a/examples/noise-js/index.js +++ b/examples/noise-js/index.js @@ -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;