From 9b8b8470b485765a6c7bd28c177cd056bf8df9b6 Mon Sep 17 00:00:00 2001 From: weboko Date: Tue, 24 Jan 2023 03:25:34 +0100 Subject: [PATCH] improve text, remove comment --- examples/noise-js/index.html | 2 +- examples/noise-js/index.js | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/examples/noise-js/index.html b/examples/noise-js/index.html index 32cc96f..228d1a9 100644 --- a/examples/noise-js/index.html +++ b/examples/noise-js/index.html @@ -165,7 +165,7 @@ />
- +
diff --git a/examples/noise-js/index.js b/examples/noise-js/index.js index 1a39a99..a2a3a15 100644 --- a/examples/noise-js/index.js +++ b/examples/noise-js/index.js @@ -74,17 +74,6 @@ async function main() { ui.hide(); } - /* - // The information needs to be backed up to decrypt messages sent with - // codecs generated with the handshake. The `handshakeResult` variable - // contains private information that needs to be stored safely - const contentTopic = pairingObj.contentTopic; - const handshakeResult = pairingObj.getHandshakeResult(); - - // To restore the codecs for decrypting older messages, or continuing an existing - // session, use this: - [encoder, decoder] = WakuPairing.getSecureCodec(contentTopic, handshakeResult); - */ ui.message.display(); await node.filter.subscribe( @@ -207,7 +196,6 @@ function initUI() { const nicknameInput = document.getElementById("nick-input"); const textInput = document.getElementById("text-input"); const sendButton = document.getElementById("send-btn"); - const sendingStatusSpan = document.getElementById("sending-status"); const chatArea = document.getElementById("chat-area"); const wakuStatusSpan = document.getElementById("waku-status"); const handshakeStatusSpan = document.getElementById("handshake-status");