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