Display hostname instead of full uri

This commit is contained in:
Amauri CHAMPEAUX 2015-03-11 00:54:10 +01:00
parent 221c36268e
commit 54d9157049
2 changed files with 3 additions and 3 deletions

View File

@ -372,7 +372,6 @@
display: inline-block;
font-size: 11px !important;
padding: 8px 10px 5px;
vertical-align: bottom;
}
#tarteaucitronAlertSmall #tarteaucitronManager:hover {
@ -416,7 +415,7 @@
cursor: pointer;
display: inline-block;
font-size: 34px;
padding: 2px 10px 0;
padding: 3px 10px 0;
}
#tarteaucitronAlertSmall #tarteaucitronCookiesNumber:hover {

View File

@ -898,7 +898,8 @@ var tarteaucitron = {
d,
s = (nb > 1) ? 's' : '',
savedname,
host = (tarteaucitron.domain !== undefined) ? tarteaucitron.domain : tarteaucitron.cdn;
regex = /^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i,
host = (tarteaucitron.domain !== undefined) ? tarteaucitron.domain : tarteaucitron.cdn.match(regex)[1];
cookies = cookies.sort(function (a, b) {
namea = a.split('=', 1).toString().replace(/ /g, '');