quick fix for gateway hostname

This commit is contained in:
hippoz 2021-03-22 21:01:13 +02:00
parent b902a1fc04
commit ccca54c0b1
Signed by: hippoz
GPG key ID: 7C52899193467641

View file

@ -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;