1
0
mirror of https://github.com/s00500/ESPUI.git synced 2024-06-02 10:03:26 +00:00

wip: fix websocket connection when using an alternate port

This commit is contained in:
David Gauchard 2023-12-13 17:23:36 +01:00
parent 8b64b185a4
commit a56ea12eb0

2
data/js/controls.js vendored
View File

@ -231,7 +231,7 @@ function start() {
port != 80 || port != 80 ||
port != 443 port != 443
) { ) {
websock = new WebSocket( "ws://" + location + "/ws" ); websock = new WebSocket( "ws://" + location + ":" + port + "/ws" );
} else { } else {
websock = new WebSocket("ws://" + location + "/ws"); websock = new WebSocket("ws://" + location + "/ws");
} }