aboutsummaryrefslogtreecommitdiff
path: root/webAO/dom/reconnectButton.ts
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/dom/reconnectButton.ts')
-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}`;
}