Fix an ancient reconnect bug.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3953 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2022-08-08 01:48:23 +00:00
parent 58196c4ac0
commit 39f05b6bf5

View File

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