mirror of
https://github.com/SomboChea/ui
synced 2024-09-30 21:37:48 +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}`;
|
||
|
}
|