Prevent Uncaught TypeError

This commit is contained in:
Amauri CHAMPEAUX 2015-02-18 23:31:18 +01:00
parent e9d7264829
commit ce7b643792
1 changed files with 7 additions and 3 deletions

View File

@ -387,7 +387,9 @@ var tarteaucitron = {
}
if (status === true) {
if (document.getElementById('tacCL' + key) !== null) {
document.getElementById('tacCL' + key).innerHTML = '...';
}
setTimeout(function () {
tarteaucitron.cookie.checkCount(key);
}, 2500);
@ -505,8 +507,10 @@ var tarteaucitron = {
html += '.';
}
if (document.getElementById('tacCL' + key) !== null) {
document.getElementById('tacCL' + key).innerHTML = html;
}
}
},
"getLanguage": function () {
"use strict";