Merge pull request #481 from f-to/middle-banner-patch
Don't show the middle banner of you are on the "moreLink" page.
This commit is contained in:
commit
037edbbb04
|
|
@ -220,8 +220,8 @@ var tarteaucitron = {
|
||||||
},
|
},
|
||||||
params = tarteaucitron.parameters;
|
params = tarteaucitron.parameters;
|
||||||
|
|
||||||
// Don't show the middle bar if we are on the privacy policy page
|
// Don't show the middle bar if we are on the privacy policy or more page
|
||||||
if (window.location.href == tarteaucitron.parameters.privacyUrl && tarteaucitron.parameters.orientation == "middle") {
|
if (((tarteaucitron.parameters.readmoreLink !== undefined && window.location.href == tarteaucitron.parameters.readmoreLink) || window.location.href == tarteaucitron.parameters.privacyUrl) && tarteaucitron.parameters.orientation == "middle") {
|
||||||
tarteaucitron.parameters.orientation = "bottom";
|
tarteaucitron.parameters.orientation = "bottom";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue