xP: remove debugging protocol logs from JS

This commit is contained in:
Přemysl Eric Janouch 2022-09-13 06:01:08 +02:00
parent a551e911ab
commit b2b3093e0e
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 2 additions and 4 deletions

View File

@ -56,8 +56,6 @@ class RelayRpc extends EventTarget {
}
_process(data) {
console.log(data)
if (typeof data !== 'string')
throw "Binary messages not supported"
@ -85,8 +83,8 @@ class RelayRpc extends EventTarget {
if (typeof e.event !== 'string')
throw "Invalid event tag"
this.dispatchEvent(new CustomEvent(
e.event, {detail: {eventSeq: message.eventSeq, ...e}}))
e.eventSeq = message.eventSeq
this.dispatchEvent(new CustomEvent(e.event, {detail: e}))
// Minor abstraction layering violation.
m.redraw()