Skip to content

Commit

Permalink
fix: browser's websocket exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldszar authored and devsnek committed Sep 18, 2020
1 parent c6a309e commit 14a915f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/transports/websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 14a915f

Please sign in to comment.