~starkingdoms/starkingdoms

2509842157db451299a187ae9d48db53a6433d1c — core 2 years ago ead5d25
dont try to connect to ws://https:// - use wss:// when API tells us to
1 files changed, 6 insertions(+), 1 deletions(-)

M client/index.html
M client/index.html => client/index.html +6 -1
@@ 46,7 46,12 @@
            }

            function server_url_to_gateway_url(server) {
                return "ws://" + server + "/ws"
                let url = new URL(server);
                if (url.protocol === "https:") {
                    return "wss://" + url.host + "/ws";
                } else {
                    return "ws://" + url.host + "/ws";
                }
            }

            function load_server(server) {