aboutsummaryrefslogtreecommitdiff
path: root/xP
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-09-13 06:01:08 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-09-14 01:01:10 +0200
commitb2b3093e0e3cdcacf51e19266b5af710f247afb7 (patch)
tree8d44ef68d5989ff3685043153c65de6d92775cfb /xP
parenta551e911ab54f5b1f56f837c3ebed42ef86fb4a1 (diff)
downloadxK-b2b3093e0e3cdcacf51e19266b5af710f247afb7.tar.gz
xK-b2b3093e0e3cdcacf51e19266b5af710f247afb7.tar.xz
xK-b2b3093e0e3cdcacf51e19266b5af710f247afb7.zip
xP: remove debugging protocol logs from JS
Diffstat (limited to 'xP')
-rw-r--r--xP/public/xP.js6
1 files changed, 2 insertions, 4 deletions
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()