real timeout should be a bit longer
This commit is contained in:
parent
d8c27d7ba8
commit
74e3e890c7
|
@ -16,7 +16,7 @@ function post(url, data) {
|
||||||
function get(url, whendone, whentimedout) {
|
function get(url, whendone, whentimedout) {
|
||||||
var x = new XMLHttpRequest()
|
var x = new XMLHttpRequest()
|
||||||
x.open("GET", url)
|
x.open("GET", url)
|
||||||
x.timeout = 5 * 1000
|
x.timeout = 15 * 1000
|
||||||
x.responseType = "json"
|
x.responseType = "json"
|
||||||
x.onload = function() { whendone(x) }
|
x.onload = function() { whendone(x) }
|
||||||
if (whentimedout) {
|
if (whentimedout) {
|
||||||
|
|
Loading…
Reference in New Issue