From 14a915ff1020ba97889100b7429379e95a6776b6 Mon Sep 17 00:00:00 2001 From: Seldszar Date: Tue, 15 Sep 2020 16:45:49 +0200 Subject: [PATCH] fix: browser's websocket exception --- src/transports/websocket.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/transports/websocket.js b/src/transports/websocket.js index 66e083a..bd5a671 100644 --- a/src/transports/websocket.js +++ b/src/transports/websocket.js @@ -23,9 +23,7 @@ class WebSocketTransport extends EventEmitter { this.ws = new WebSocket( `ws://127.0.0.1:${port}/?v=1&client_id=${this.client.clientId}`, - { - origin: this.client.options.origin, - }, + browser ? undefined : { origin: this.client.options.origin }, ); this.ws.onopen = this.onOpen.bind(this); this.ws.onclose = this.onClose.bind(this);