Remove let FIX #516

This commit is contained in:
Amauri CHAMPEAUX 2021-04-19 11:51:27 +02:00
parent 473d901ba1
commit 09db2562a5
1 changed files with 5 additions and 5 deletions

View File

@ -595,11 +595,11 @@ var tarteaucitron = {
}, 1500); }, 1500);
} }
if(tarteaucitron.parameters.closePopup === true){ if(tarteaucitron.parameters.closePopup === true){
let element = document.getElementById('tarteaucitronAlertBig'); var closeElement = document.getElementById('tarteaucitronAlertBig'),
let span = document.createElement('span') closeSpan = document.createElement('span');
span.textContent = 'X'; closeSpan.textContent = 'X';
span.setAttribute('id', "tarteaucitronCloseCross") closeSpan.setAttribute('id', "tarteaucitronCloseCross");
element.insertBefore(span, element.firstElementChild) closeElement.insertBefore(closeSpan, closeElement.firstElementChild);
} }