[registryUI] pretty print the registry url

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
This commit is contained in:
Jakob Ackermann
2019-09-07 10:32:02 +02:00
parent 65bbac3453
commit b6144ae13f
6 changed files with 21 additions and 9 deletions
+8 -1
View File
@@ -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?:\/\//, '');
};