MCPcopy 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
300function getUrlDir() {
301 var path = window.location.pathname;
302 return path.substring(0, path.lastIndexOf('/'));
303}
304
305export function getWebsocketUrl(relativePath) {
306 var location = window.location;

Callers 1

getWebsocketUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected