5db682b
1
2
3
4
5
6
7
8
9
10
11
/** * Extract the current web page's base url * @returns base url of the page */ export function getBaseUrl(): string { if (typeof window !== 'undefined') { return window.location.origin } return '' }