(location: ShareUrlLocation, appVersion: string)
| 17 | } |
| 18 | |
| 19 | export 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 | |
| 26 | export function buildShareableUrl({ |
| 27 | baseUrl, |
no outgoing calls
no test coverage detected