diff --git a/js/app.js b/js/app.js index 1a57179a..cfb112ba 100644 --- a/js/app.js +++ b/js/app.js @@ -176,7 +176,11 @@ app = Sammy('#main', function (sam) { // Check if te client is hosted on a yunohost node domain = window.location.hostname - $.getJSON('http://'+ domain +':6767/api', function(data) { + $.ajax({ + url: 'http://'+ domain +':6767/api', + timeout: 3000 + }) + .success(function() { $.getJSON('http://'+ domain +':6767/installed', function(data) { if (!data.installed) { c.view('postinstall');