From 082bbf6d66fd8e901d062accf49d7785c6dbb149 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Wed, 4 Mar 2020 12:14:00 +0100 Subject: [PATCH] Don't show the middle bar if we are on the privacy policy page --- tarteaucitron.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tarteaucitron.js b/tarteaucitron.js index 078b055..3c44f85 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -236,6 +236,11 @@ var tarteaucitron = { "useExternalJs": false }, 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") { + tarteaucitron.parameters.orientation = "bottom"; + } // Step -1 if (typeof tarteaucitronCustomPremium !== 'undefined') {