aboutsummaryrefslogtreecommitdiff
path: root/xP/public
diff options
context:
space:
mode:
Diffstat (limited to 'xP/public')
-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()