1
0
mirror of https://github.com/SomboChea/ui synced 2026-01-18 00:56:00 +07:00

refactor: remove getBaseNamePath() and history.ts

This commit is contained in:
Griffithtp
2019-07-14 12:35:57 +01:00
parent 795544a14c
commit ecc4521314
3 changed files with 5 additions and 17 deletions

View File

@@ -18,11 +18,3 @@ export function getRegistryURL(): string {
// Don't add slash if it's not a sub directory
return `${location.origin}${location.pathname === '/' ? '' : location.pathname}`;
}
export function getBaseNamePath(): string {
return window.__VERDACCIO_BASENAME_UI_OPTIONS && window.__VERDACCIO_BASENAME_UI_OPTIONS.url_prefix;
}
export function getRootPath(): string {
return window.__VERDACCIO_BASENAME_UI_OPTIONS && window.__VERDACCIO_BASENAME_UI_OPTIONS.base;
}