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:
Amauri CHAMPEAUX 2020-08-10 17:20:52 +02:00 committed by GitHub
commit 037edbbb04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -220,8 +220,8 @@ var tarteaucitron = {
},
params = tarteaucitron.parameters;
// Don't show the middle bar if we are on the privacy policy page
if (window.location.href == tarteaucitron.parameters.privacyUrl && tarteaucitron.parameters.orientation == "middle") {
// Don't show the middle bar if we are on the privacy policy or more page
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";
}