mirror of
https://github.com/SomboChea/ui
synced 2024-06-30 06:56:23 +07:00
5 lines
170 B
JavaScript
5 lines
170 B
JavaScript
export function getRegistryURL() {
|
|
// Don't add slash if it's not a sub directory
|
|
return `${location.origin}${location.pathname === '/' ? '' : location.pathname}`;
|
|
}
|