Created
October 1, 2014 17:50
-
-
Save dweldon/8f3f16a603b7487ae2f4 to your computer and use it in GitHub Desktop.
meteor-filepicker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var retry = new Retry({ | |
baseTimeout: 100, | |
maxTimeout: 2000 | |
}); | |
var retryCount = 0; | |
var load = function() { | |
$.ajax({ | |
url: '//api.filepicker.io/v1/filepicker.js', | |
dataType: 'script', | |
cache: true, | |
error: function() { | |
retryCount += 1; | |
return retry.retryLater(retryCount, load); | |
} | |
}); | |
}; | |
load(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment