Selaa lähdekoodia

config: set parameter to default

Hugh Harlequin 2 vuotta sitten
vanhempi
commit
3588ee2dd2
2 muutettua tiedostoa jossa 6 lisäystä ja 15 poistoa
  1. 1 11
      gdpr.init.js
  2. 5 4
      tarteaucitron.js

+ 1 - 11
gdpr.init.js

@@ -1,14 +1,4 @@
-tarteaucitron.init({
-    "hashtag": "#tarteaucitron",
-    "highPrivacy": false,
-    "orientation": "bottom",
-    "adblocker": false,
-    "showAlertSmall": true,
-    "cookieslist": false,
-    "removeCredit": true
-});
-
-tarteaucitron.user.bypass = true;
+tarteaucitron.init();
 //tarteaucitron.userInterface.respondAll(true);
 
 //document.addEventListener("DOMContentLoaded", function() {

+ 5 - 4
tarteaucitron.js

@@ -204,10 +204,10 @@ var tarteaucitron = {
                 "adblocker": false,
                 "hashtag": '#tarteaucitron',
                 "cookieName": 'tarteaucitron',
-                "highPrivacy": true,
-                "orientation": "middle",
+                "highPrivacy": false,
+                "orientation": "bottom",
                 "bodyPosition": "bottom",
-                "removeCredit": false,
+                "removeCredit": true,
                 "showAlertSmall": false,
                 "showIcon": true,
                 "iconPosition": "BottomRight",
@@ -224,6 +224,7 @@ var tarteaucitron = {
                 "closePopup": false,
                 "groupServices": false,
                 "serviceDefaultState": 'wait',
+                "bypass": true,
             },
             params = tarteaucitron.parameters;
 
@@ -862,7 +863,7 @@ var tarteaucitron = {
         tarteaucitron.pro('!' + service.key + '=' + isAllowed);
 
         // allow by default for non EU
-        if (isResponded === false && tarteaucitron.user.bypass === true) {
+        if (isResponded === false && tarteaucitron.parameters.bypass === true) {
             isAllowed = true;
             tarteaucitron.cookie.create(service.key, true);
         }