Set the cookie for by default allowed services

This commit is contained in:
Amauri CHAMPEAUX 2020-10-17 08:37:14 +02:00
parent 2bd9a65177
commit bfd25e8344
1 changed files with 2 additions and 2 deletions

View File

@ -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) {