MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / getShareBaseUrl

Function getShareBaseUrl

src/utils/shareUrl.ts:19–24  ·  view source on GitHub ↗
(location: ShareUrlLocation, appVersion: string)

Source from the content-addressed store, hash-verified

17}
18
19export function getShareBaseUrl(location: ShareUrlLocation, appVersion: string): string {
20 if (location.hostname === 'colmapview.github.io') {
21 return `https://colmapview.github.io/v${appVersion}/`;
22 }
23 return location.origin + location.pathname;
24}
25
26export function buildShareableUrl({
27 baseUrl,

Callers 2

shareUrl.test.tsFile · 0.90
generateShareableUrlFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected