mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
Add timeouts to XhttpGet requests
This commit is contained in:
+4
-3
@@ -39,10 +39,11 @@ function getEEE() {
|
||||
}
|
||||
};
|
||||
xhttp.open("GET", "/eee.json", true);
|
||||
xhttp.send();
|
||||
xhttp.timeout = 1500; xhttp.send();
|
||||
}
|
||||
|
||||
window.addEventListener("load", function() {
|
||||
const iCount = setInterval(getEEE, 1000);
|
||||
getEEE();
|
||||
const iCount = setInterval(getEEE, 2000);
|
||||
});
|
||||
const stat = setInterval(createEEE, 500);
|
||||
const stat = setInterval(createEEE, 1000);
|
||||
|
||||
Reference in New Issue
Block a user