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

Method basicURL

client/ts/etc/URLHandler.ts:7–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5export default class URLHandler {
6
7 static basicURL() {
8 const url_path = window.location.pathname.split('/').slice(0, -2).join('/');
9
10 return window.location.origin + (url_path.length ? url_path : '');
11 }
12
13 /**
14 * Read all URL parameters into a map.

Callers 1

constructorMethod · 0.45

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected