From f11324c47f576f1936187c37a9aeb78ddb00e5a9 Mon Sep 17 00:00:00 2001 From: weboko Date: Thu, 12 Jan 2023 01:27:42 +0100 Subject: [PATCH] improve alignment of UI state to handshake status --- examples/noise-js/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/noise-js/index.js b/examples/noise-js/index.js index 052f65f..ff70e82 100644 --- a/examples/noise-js/index.js +++ b/examples/noise-js/index.js @@ -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;