forked from hippoz/brainlet
quick fix for gateway hostname
This commit is contained in:
parent
b902a1fc04
commit
ccca54c0b1
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ const getOpcodeByName = (name) => {
|
|||
|
||||
class GatewayConnection {
|
||||
constructor(token) {
|
||||
this.ws = new WebSocket("ws://localhost:3005/gateway?v=2");
|
||||
this.ws = new WebSocket(`ws://${window.location.hostname}/gateway?v=2`);
|
||||
|
||||
this.handshakeCompleted = false;
|
||||
this.sessionInformation = null;
|
||||
|
|
Loading…
Reference in a new issue