Expose the client's requesting URL to apps.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4374 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2023-07-31 00:26:09 +00:00
parent b5768dd927
commit bdf64edeb8
3 changed files with 3 additions and 0 deletions

View File

@ -1072,6 +1072,7 @@ function connectSocket(path) {
gSocket.send(JSON.stringify({
action: "hello",
path: connect_path,
url: window.location.href,
api: Object.entries(k_api).map(([key, value]) => [].concat([key], value.args)),
}));
}