mirror of
https://github.com/logos-messaging/examples.waku.org.git
synced 2026-01-04 05:43:07 +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) {
|
async function confirmAuthCodeFlow(pairingObj) {
|
||||||
handshakeStatusSpan.innerHTML = "executing handshake...";
|
|
||||||
const authCode = await pairingObj.getAuthCode();
|
const authCode = await pairingObj.getAuthCode();
|
||||||
|
handshakeStatusSpan.innerHTML = "executing handshake";
|
||||||
pairingObj.validateAuthCode(confirm("Confirm that authcode is: " + authCode));
|
pairingObj.validateAuthCode(confirm("Confirm that authcode is: " + authCode));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -248,14 +248,14 @@ async function main() {
|
|||||||
disableUI();
|
disableUI();
|
||||||
console.error(err);
|
console.error(err);
|
||||||
} else {
|
} else {
|
||||||
handshakeStatusSpan.innerHTML = "waiting for handshake";
|
handshakeStatusSpan.innerHTML = "waiting for handshake...";
|
||||||
qrUrl.href = qrURLString;
|
qrUrl.href = qrURLString;
|
||||||
qrUrl.style.display = "block";
|
qrUrl.style.display = "block";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
handshakeStatusSpan.innerHTML = "waiting for handshake";
|
handshakeStatusSpan.innerHTML = "waiting for handshake...";
|
||||||
|
|
||||||
[encoder, decoder] = await pExecute;
|
[encoder, decoder] = await pExecute;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user