mirror of
https://github.com/SomboChea/ui
synced 2026-01-20 01:55:56 +07:00
This commit is contained in:
committed by
GitHub
parent
ee74474811
commit
d955268c25
@@ -15,7 +15,8 @@ export function isEmail(email: string): boolean {
|
||||
}
|
||||
|
||||
export function getRegistryURL(): string {
|
||||
return window.__VERDACCIO_BASENAME_UI_OPTIONS.base;
|
||||
// Don't add slash if it's not a sub directory
|
||||
return `${location.origin}${location.pathname === '/' ? '' : location.pathname}`;
|
||||
}
|
||||
|
||||
export function extractFileName(url: string): string {
|
||||
|
||||
Reference in New Issue
Block a user