remove baseUrl function since import.meta.env.BASE_URL provides what we need
This commit is contained in:
@@ -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 '';
|
||||
}
|
||||
@@ -1,3 +1,2 @@
|
||||
export * from './utils';
|
||||
export * from './baseUrl';
|
||||
export * from './umbraco-path';
|
||||
|
||||
Reference in New Issue
Block a user