1 parent ff52d90 commit 446b23cCopy full SHA for 446b23c
2 files changed
js/MessageTransport.js
@@ -117,13 +117,12 @@
117
}
118
119
function sendOut() {
120
- var payload = {
121
- transport: true,
122
- destinationName: this._options.device + TOPIC.PING,
123
- payloadBytes: new Uint8Array(this._buf)
124
- };
125
if (this.isOpen) {
126
- this._window.postMessage(payload, location.origin);
+ this._window.postMessage({
+ transport: true,
+ destinationName: this._options.device + TOPIC.PING,
+ payloadBytes: new Uint8Array(this._buf)
+ }, location.origin);
127
128
clearBuf(this);
129
simulator
0 commit comments