diff --git a/static/js/devices.js b/static/js/devices.js index 617201d..baac591 100644 --- a/static/js/devices.js +++ b/static/js/devices.js @@ -11,13 +11,13 @@ function urlStatus(url, cb){ } function checkDownload(url){ + document.buildingfw = true; urlStatus(url, function(status) { if (status === 200){ document.buildingfw = false; document.getElementById("download").src=url; } else { - document.buildingfw = true; checkDownload(url); } });