Skip to content

Commit 9f0e3d6

Browse files
committed
Merge branch 'master' of https://github.com/discordjs/RPC into refactor-clean-code
2 parents 60a157e + 14a915f commit 9f0e3d6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/transports/websocket.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ class WebSocketTransport extends EventEmitter {
2323

2424
this.ws = new WebSocket(
2525
`ws://127.0.0.1:${port}/?v=1&client_id=${this.client.clientId}`,
26-
{
27-
origin: this.client.options.origin,
28-
},
26+
browser ? undefined : { origin: this.client.options.origin },
2927
);
3028
this.ws.onopen = this.onOpen.bind(this);
3129
this.ws.onclose = this.onClose.bind(this);

0 commit comments

Comments
 (0)