MCPcopy Create free account
hub / github.com/CSAILVision/gandissect / basicURL

Method basicURL

client_dist/ganclient.js:442–445  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

440 */
441class URLHandler {
442 static basicURL() {
443 const url_path = window.location.pathname.split('/').slice(0, -2).join('/');
444 return window.location.origin + (url_path.length ? url_path : '');
445 }
446 /**
447 * Read all URL parameters into a map.
448 * @returns {Map} the url parameters as a key-value store (ES6 map)

Callers 1

constructorMethod · 0.45

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected