Browse Source

Add 5 second delay to processRequest internet connection test

pull/1460/head
Alex Crooks 7 years ago
parent
commit
0ce0a3aaba
  1. 4
      index.html

4
index.html

@ -15,7 +15,9 @@
xhr.open('HEAD', file + "?rand=" + randomNum, true);
xhr.send();
xhr.addEventListener("readystatechange", processRequest, false);
xhr.addEventListener("readystatechange", function() {
setTimeout(processRequest, 5000);
}, false);
function processRequest(e) {
if (xhr.readyState == 4) {

Loading…
Cancel
Save