Skip to content

Commit

Permalink
Fix Uncaught Typerror while using the Deny/Accept all buttons fix #504
Browse files Browse the repository at this point in the history
  • Loading branch information
AmauriC committed Oct 13, 2020
1 parent 0c86a68 commit 8bd6928
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tarteaucitronjs",
"version": "1.8.1",
"version": "1.8.2",
"description": "Comply to the European cookie law",
"dependencies": {},
"devDependencies": {},
Expand Down
4 changes: 3 additions & 1 deletion tarteaucitron.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var scripts = document.getElementsByTagName('script'),


var tarteaucitron = {
"version": 20201005,
"version": 20201013,
"cdn": cdn,
"user": {},
"lang": {},
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 8bd6928

Please sign in to comment.