Skip to content

Commit d2885f4

Browse files
committed
document.location.host includes port, so no separate port handling needed
1 parent 1f5e802 commit d2885f4

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

remi/gui.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,12 +1405,8 @@ def set_internal_js(self, app_identifier, net_interface_ip, pending_messages_que
14051405
}
14061406
else{
14071407
host = document.location.host;
1408-
port = document.location.port;
14091408
pathname = document.location.pathname;
1410-
if (port != ''){
1411-
port = `:${port}`;
1412-
}
1413-
wss_url = `${ws_wss}://${document.location.host}${port}${pathname}`;
1409+
wss_url = `${ws_wss}://${document.location.host}${pathname}`;
14141410
}
14151411
14161412
this._ws = new WebSocket(wss_url);

0 commit comments

Comments
 (0)