aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authorDavid Skoland <davidskoland@gmail.com>2026-03-24 14:06:14 +0100
committerDavid Skoland <davidskoland@gmail.com>2026-03-24 14:06:14 +0100
commit5ccf284560cc6710f78b44f4887f3513117605ce (patch)
tree9bc5875886cc6954c179a0790c2081fe14253115 /webAO
parentc4258d8f80314339b0707cbb96f74596d7041f1b (diff)
add comment explaining assumption
Diffstat (limited to 'webAO')
-rw-r--r--webAO/dom/reconnectButton.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/webAO/dom/reconnectButton.ts b/webAO/dom/reconnectButton.ts
index ae492fb..eecb915 100644
--- a/webAO/dom/reconnectButton.ts
+++ b/webAO/dom/reconnectButton.ts
@@ -11,6 +11,8 @@ export function ReconnectButton() {
// Build the connection string the same way the initial connection does
let connectionString = connect;
if (!connectionString && serverIP) {
+ // if connectionString is not set, try IP
+ // and just guess ws, though it could be wss
connectionString = `ws://${serverIP}`;
}