mirror of
https://github.com/cytopia/devilbox.git
synced 2024-12-21 21:57:47 +00:00
Send AJAX calls on http or https
This commit is contained in:
parent
6453954565
commit
c7b777dfb2
@ -123,7 +123,7 @@
|
||||
//console.log(vhost);
|
||||
}
|
||||
}
|
||||
xhttp.open('POST', 'http://'+vhost+'.<?php echo loadClass('Httpd')->getTldSuffix().loadClass('Httpd')->getPort();?>/devilbox-api/status.json', true);
|
||||
xhttp.open('POST', '//'+vhost+'.<?php echo loadClass('Httpd')->getTldSuffix().loadClass('Httpd')->getPort();?>/devilbox-api/status.json', true);
|
||||
xhttp.send();
|
||||
|
||||
// Timeout to abort in 1 second
|
||||
|
Loading…
Reference in New Issue
Block a user