Fix the detection of script tag in case of not type specified

This commit is contained in:
Amauri CHAMPEAUX 2015-02-27 16:01:47 +01:00
parent 0bd96f9afb
commit 56bad3f84d
1 changed files with 1 additions and 1 deletions

View File

@ -691,7 +691,7 @@ var tarteaucitron = {
childId = id + Math.floor(Math.random() * 99999999999);
document.getElementById(id).innerHTML += '<div id="' + childId + '"></div>';
tarteaucitron.makeAsync.getAndParse(scripts[i].getAttribute('src'), childId);
} else if (type.indexOf('javascript') !== -1) {
} else if (type.indexOf('javascript') !== -1 || type === '') {
eval(scripts[i].innerHTML);
}
}