From 8bd6928e8594230948ef1602eed756d882008f24 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Tue, 13 Oct 2020 16:54:24 +0200 Subject: [PATCH] Fix Uncaught Typerror while using the Deny/Accept all buttons fix #504 --- package.json | 2 +- tarteaucitron.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7dedb98..b6ed3fd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tarteaucitronjs", - "version": "1.8.1", + "version": "1.8.2", "description": "Comply to the European cookie law", "dependencies": {}, "devDependencies": {}, diff --git a/tarteaucitron.js b/tarteaucitron.js index 32b696b..0fea96c 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -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;