mirror of
https://github.com/status-im/js-waku-examples.git
synced 2025-01-12 15:04:37 +00:00
improve alignment of UI state to handshake status
This commit is contained in:
parent
827809532a
commit
f11324c47f
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user