Do not try to load something for the mandatory allow button

This commit is contained in:
Amauri CHAMPEAUX 2020-10-13 17:32:05 +02:00
parent 8bd6928e85
commit 3b334efc8d
1 changed files with 1 additions and 1 deletions

View File

@ -851,7 +851,7 @@ 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;}
if (key.substring(0, 13) == 'tarteaucitron' || key == "") {return;}
// return if same state
if (tarteaucitron.state[key] === status) {