Fix websocket connection for port 80

port 80 was interpretet as <IP>:/ws before.
Certain browser did not like the colon...
This commit is contained in:
Sean Engelhardt 2019-03-20 14:44:35 +01:00
parent 460c99e683
commit 56289af867
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ export class WebsocketService {
// Create the websocket
let socketPath = location.protocol === 'https:' ? 'wss://' : 'ws://';
socketPath += window.location.hostname + ':' + window.location.port + '/ws/';
socketPath += window.location.host + '/ws/';
socketPath += formatQueryParams(queryParams);
this.websocket = new WebSocket(socketPath);