Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/bugy/script-server
/ getUrlDir
Function
getUrlDir
web-src/src/common/utils/common.js:300–303 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
298
}
299
300
function
getUrlDir() {
301
var
path = window.location.pathname;
302
return
path.substring(0, path.lastIndexOf(
'/'
));
303
}
304
305
export
function
getWebsocketUrl(relativePath) {
306
var
location = window.location;
Callers
1
getWebsocketUrl
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected