Reduce timeout

This commit is contained in:
Kload 2013-09-30 18:47:38 +02:00
parent c6c2e6b352
commit 512bfc0f9e

View file

@ -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');