middle banner displaying

The middle banner will not be shown on both more and privacy pages.
This commit is contained in:
f-to 2020-07-09 11:13:59 +02:00 committed by GitHub
parent f3decd4436
commit 92f7df147f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -219,8 +219,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";
}