mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2026-08-17 11:26:28 +00:00
[registryUI] pretty print the registry url
Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
This commit is contained in:
@@ -111,4 +111,11 @@ registryUI.updateQueryString = function(qs) {
|
||||
}
|
||||
}
|
||||
history.pushState(null, '', search + window.location.hash);
|
||||
}
|
||||
}
|
||||
|
||||
registryUI.stripHttps = function (url) {
|
||||
if (!url) {
|
||||
return '';
|
||||
}
|
||||
return url.replace(/^https?:\/\//, '');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user