mirror of
https://github.com/SomboChea/ui
synced 2024-09-28 04:27:46 +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}`;
|
||
|
}
|