Fix Uncaught Typerror while using the Deny/Accept all buttons fix #504
This commit is contained in:
parent
0c86a68194
commit
8bd6928e85
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "tarteaucitronjs",
|
||||
"version": "1.8.1",
|
||||
"version": "1.8.2",
|
||||
"description": "Comply to the European cookie law",
|
||||
"dependencies": {},
|
||||
"devDependencies": {},
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ var scripts = document.getElementsByTagName('script'),
|
|||
|
||||
|
||||
var tarteaucitron = {
|
||||
"version": 20201005,
|
||||
"version": 20201013,
|
||||
"cdn": cdn,
|
||||
"user": {},
|
||||
"lang": {},
|
||||
|
|
@ -851,6 +851,8 @@ var tarteaucitron = {
|
|||
"use strict";
|
||||
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
|
||||
if (tarteaucitron.state[key] === status) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue