|
@@ -1534,9 +1534,13 @@ var tarteaucitron = {
|
|
|
var i;
|
|
|
|
|
|
for (i = 0; i < arr.length; i += 1) {
|
|
|
- document.cookie = arr[i] + '=; expires=Thu, 01 Jan 2000 00:00:00 GMT; path=/;';
|
|
|
- document.cookie = arr[i] + '=; expires=Thu, 01 Jan 2000 00:00:00 GMT; path=/; domain=.' + location.hostname + ';';
|
|
|
- document.cookie = arr[i] + '=; expires=Thu, 01 Jan 2000 00:00:00 GMT; path=/; domain=.' + location.hostname.split('.').slice(-2).join('.') + ';';
|
|
|
+
|
|
|
+ var rgxpCookie = new RegExp("^(.*;)?\\s*" + arr[i] + "\\s*=\\s*[^;]+(.*)?$");
|
|
|
+ if (document.cookie.match(rgxpCookie)) {
|
|
|
+ document.cookie = arr[i] + '=; expires=Thu, 01 Jan 2000 00:00:00 GMT; path=/;';
|
|
|
+ document.cookie = arr[i] + '=; expires=Thu, 01 Jan 2000 00:00:00 GMT; path=/; domain=.' + location.hostname + ';';
|
|
|
+ document.cookie = arr[i] + '=; expires=Thu, 01 Jan 2000 00:00:00 GMT; path=/; domain=.' + location.hostname.split('.').slice(-2).join('.') + ';';
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
"checkCount": function (key) {
|