From 911b907f85d822eb18a85693b252b94dcc1848eb Mon Sep 17 00:00:00 2001 From: Hri7566 Date: Fri, 12 Jul 2024 18:20:49 -0400 Subject: [PATCH] Fix URL detection for port resolution --- script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.js b/script.js index f535052..c225afd 100755 --- a/script.js +++ b/script.js @@ -1150,7 +1150,7 @@ $(function () { const isSecure = globalThis.location.protocol == "https:"; const port = - window.location.hostname == "www.multiplayerpiano.com" ? 443 : 8443; + window.location.hostname == "www.multiplayerpiano.dev" ? 443 : 8443; const gClient = new Client( (isSecure ? "wss://" : "ws://") + window.location.hostname + ":" + port );