mirror of
https://github.com/SomboChea/ui
synced 2026-01-19 01:25:51 +07:00
chore: sync with verdaccio master
This commit is contained in:
4
src/webui/utils/url.js
Normal file
4
src/webui/utils/url.js
Normal file
@@ -0,0 +1,4 @@
|
||||
export function getRegistryURL() {
|
||||
// Don't add slash if it's not a sub directory
|
||||
return `${location.origin}${location.pathname === '/' ? '' : location.pathname}`;
|
||||
}
|
||||
Reference in New Issue
Block a user