Remove useless check

This commit is contained in:
Bartek Fabiszewski 2017-09-06 22:12:23 +02:00
parent 9a47089483
commit 117dae49d9

View File

@ -531,9 +531,7 @@ function addScript(url) {
var tag = document.createElement('script'); var tag = document.createElement('script');
tag.setAttribute('type', 'text/javascript'); tag.setAttribute('type', 'text/javascript');
tag.setAttribute('src', url); tag.setAttribute('src', url);
if (typeof tag != 'undefined') {
document.getElementsByTagName('head')[0].appendChild(tag); document.getElementsByTagName('head')[0].appendChild(tag);
}
} }
function isScriptLoaded(url) { function isScriptLoaded(url) {