Fix Uncaught Typerror while using the Deny/Accept all buttons fix #504

This commit is contained in:
Amauri CHAMPEAUX 2020-10-13 16:54:24 +02:00
parent 0c86a68194
commit 8bd6928e85
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "tarteaucitronjs", "name": "tarteaucitronjs",
"version": "1.8.1", "version": "1.8.2",
"description": "Comply to the European cookie law", "description": "Comply to the European cookie law",
"dependencies": {}, "dependencies": {},
"devDependencies": {}, "devDependencies": {},

View File

@ -17,7 +17,7 @@ var scripts = document.getElementsByTagName('script'),
var tarteaucitron = { var tarteaucitron = {
"version": 20201005, "version": 20201013,
"cdn": cdn, "cdn": cdn,
"user": {}, "user": {},
"lang": {}, "lang": {},
@ -851,6 +851,8 @@ var tarteaucitron = {
"use strict"; "use strict";
var key = el.id.replace(new RegExp("(Eng[0-9]+|Allow|Deni)ed", "g"), ''); var key = el.id.replace(new RegExp("(Eng[0-9]+|Allow|Deni)ed", "g"), '');
if (key.substring(0, 13) == 'tarteaucitron') {return;}
// return if same state // return if same state
if (tarteaucitron.state[key] === status) { if (tarteaucitron.state[key] === status) {
return; return;