Skip to content

Commit

Permalink
don't stop generating when error occurs
Browse files Browse the repository at this point in the history
  • Loading branch information
grant-g committed Feb 5, 2016
1 parent 490dd1d commit 940b85b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion catalogLoadTest.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@
var cell = row.insertCell();
var text = document.createTextNode("failure: " + XMLHttpRequest.responseText);
cell.appendChild(text);
stop();

var delay = Math.floor(document.getElementById("delayText").value);
delay = Math.min(Math.max(delay, 1), 100);
setTimeout(callLoad, delay * 1000);
}
});
}
Expand Down

0 comments on commit 940b85b

Please sign in to comment.