remove baseUrl function since import.meta.env.BASE_URL provides what we need

This commit is contained in:
Jacob Overgaard
2023-02-13 09:31:10 +01:00
parent ead8eb76d4
commit 57ba1e2d51
2 changed files with 0 additions and 11 deletions

View File

@@ -1,10 +0,0 @@
export function baseUrl(): string {
if (typeof document !== 'undefined') {
const baseElems = document.getElementsByTagName('base');
if (baseElems.length && baseElems[0].hasAttribute('href')) {
return baseElems[0].href.slice(0, -1);
}
}
return '';
}

View File

@@ -1,3 +1,2 @@
export * from './utils';
export * from './baseUrl';
export * from './umbraco-path';