From 39f05b6bf53ce52125385aa38e5dc5e8055956a7 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Mon, 8 Aug 2022 01:48:23 +0000 Subject: [PATCH] Fix an ancient reconnect bug. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3953 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- core/client.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/client.js b/core/client.js index 6e6e0b5a..7213da2d 100644 --- a/core/client.js +++ b/core/client.js @@ -815,9 +815,10 @@ function connectSocket(path) { + "/app/socket"); gSocket.onopen = function() { setStatusMessage("🟡 Authenticating...", kStatusColor); + let connect_path = path ?? window.location.pathname; gSocket.send(JSON.stringify({ action: "hello", - path: path, + path: connect_path, api: Object.entries(k_api).map(([key, value]) => [].concat([key], value.args)), })); }