Skip to content

Commit

Permalink
Set timeout lower than time between requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Rasche committed Sep 26, 2014
1 parent 229a4eb commit 314ac2a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion static/js/ie.js
Expand Up @@ -32,12 +32,15 @@ function test_ie_availability(url, success_callback){
$.ajax({
url: url,
type: "GET",
timeout: 500,
success: function(){
console.log("Connected to IE, returning");
clearInterval(interval);
success_callback();
},
error: function(){
error: function(jqxhr, status, error){
request_count++;
console.log("Request " + request_count);
if(request_count > 30){
clearInterval(interval);
clear_main_area();
Expand Down

0 comments on commit 314ac2a

Please sign in to comment.