From bfd25e8344f1cfaa637d6d4066fbdd35f8d86aa1 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Sat, 17 Oct 2020 08:37:14 +0200 Subject: [PATCH] Set the cookie for by default allowed services --- tarteaucitron.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tarteaucitron.js b/tarteaucitron.js index 1aa311c..1cb85b1 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -17,7 +17,7 @@ var scripts = document.getElementsByTagName('script'), var tarteaucitron = { - "version": 20201013, + "version": 20201017, "cdn": cdn, "user": {}, "lang": {}, @@ -726,7 +726,7 @@ var tarteaucitron = { } if ((!isResponded && (isAutostart || (isNavigating && isWaiting)) && !tarteaucitron.highPrivacy) || isAllowed) { - if (!isAllowed) { + if (!isAllowed || (!service.needConsent && cookie.indexOf(service.key + '=false') < 0)) { tarteaucitron.cookie.create(service.key, true); } if (tarteaucitron.launch[service.key] !== true) {