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