forked from cory/tildefriends
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:
parent
58196c4ac0
commit
39f05b6bf5
@ -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)),
|
||||
}));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user