diff --git a/js/BoxPage.js b/js/BoxPage.js index 69be2ae..a2b2644 100644 --- a/js/BoxPage.js +++ b/js/BoxPage.js @@ -61,7 +61,6 @@ _networkAPI.init(boxURL); retrieveNetworkStatus(); _updateAPI.init(boxURL); - retrieveUpdateStatus(); }); $.mobile.document.on( "pagebeforehide", PAGE_ID, function( event, data ) { clearTimeout(_retryRetrieveStatusDelay); @@ -92,6 +91,8 @@ updateLink = d3d.util.replaceURLParameters(updateLink,_boxData); _updateItem.find("a").attr("href",updateLink); + retrieveUpdateStatus(); + } else { // offline //console.log("offline"); introText = "Please connect your WiFi-Box to the internet. You can also use it offline, but then you won't be able to update.";