From b2b3093e0e3cdcacf51e19266b5af710f247afb7 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Tue, 13 Sep 2022 06:01:08 +0200 Subject: xP: remove debugging protocol logs from JS --- xP/public/xP.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'xP/public') diff --git a/xP/public/xP.js b/xP/public/xP.js index 6672231..ec2b476 100644 --- a/xP/public/xP.js +++ b/xP/public/xP.js @@ -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() -- cgit v1.2.3-70-g09d2