浏览代码

Don't show the middle bar if we are on the privacy policy page

Amauri CHAMPEAUX 5 年之前
父节点
当前提交
082bbf6d66
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      tarteaucitron.js

+ 5 - 0
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') {