From 117dae49d95ad9cf4066389721f7bf1cb0f0edef Mon Sep 17 00:00:00 2001 From: Bartek Fabiszewski Date: Wed, 6 Sep 2017 22:12:23 +0200 Subject: [PATCH] Remove useless check --- js/main.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/main.js b/js/main.js index e678b07..e3404ad 100755 --- a/js/main.js +++ b/js/main.js @@ -531,9 +531,7 @@ function addScript(url) { var tag = document.createElement('script'); tag.setAttribute('type', 'text/javascript'); tag.setAttribute('src', url); - if (typeof tag != 'undefined') { - document.getElementsByTagName('head')[0].appendChild(tag); - } + document.getElementsByTagName('head')[0].appendChild(tag); } function isScriptLoaded(url) {