mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Reduce timeout
This commit is contained in:
parent
c6c2e6b352
commit
512bfc0f9e
1 changed files with 5 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Reference in a new issue