Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/discordjs/RPC into better…
Browse files Browse the repository at this point in the history
…-docs
  • Loading branch information
NotSugden committed Sep 18, 2020
2 parents 321a9a3 + 14a915f commit 5ab576b
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 5ab576b

Please sign in to comment.