From 512bfc0f9e87c7b7bf0bc4621d8dd3dadbea1f69 Mon Sep 17 00:00:00 2001 From: Kload Date: Mon, 30 Sep 2013 18:47:38 +0200 Subject: [PATCH] Reduce timeout --- js/app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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');