Fix port resolution
This commit is contained in:
commit
2c50e7ae5d
|
@ -1150,7 +1150,7 @@ $(function () {
|
||||||
|
|
||||||
const isSecure = globalThis.location.protocol == "https:";
|
const isSecure = globalThis.location.protocol == "https:";
|
||||||
const port =
|
const port =
|
||||||
window.location.hostname == "staging.multiplayerpiano.dev" ? 443 : 8443;
|
window.location.hostname.includes("multiplayerpiano.dev") ? 443 : 8443;
|
||||||
const gClient = new Client(
|
const gClient = new Client(
|
||||||
(isSecure ? "wss://" : "ws://") + window.location.hostname + ":" + port
|
(isSecure ? "wss://" : "ws://") + window.location.hostname + ":" + port
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue