feat(rln-js): add logs

This commit is contained in:
fryorcraken.eth 2022-09-28 00:37:34 +10:00
parent ea9da4cf90
commit b12222c531
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 2 additions and 0 deletions

View File

@ -202,7 +202,9 @@
const timestamp = new Date(); const timestamp = new Date();
const msg = ProtoChatMessage.create({text, nick, timestamp: timestamp.valueOf()}); const msg = ProtoChatMessage.create({text, nick, timestamp: timestamp.valueOf()});
const payload = ProtoChatMessage.encode(msg).finish(); const payload = ProtoChatMessage.encode(msg).finish();
console.log("Sending message with proof...")
await node.lightPush.push(encoder, {payload, timestamp}); await node.lightPush.push(encoder, {payload, timestamp});
console.log("Message sent!")
textInput.value = null; textInput.value = null;
}; };
</script> </script>