Fix port resolution

This commit is contained in:
Hri7566 2024-07-12 18:23:03 -04:00
commit 2c50e7ae5d
1 changed files with 1 additions and 1 deletions

View File

@ -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
); );