Update example app

This commit is contained in:
Insality
2021-10-23 17:39:24 +03:00
parent 1ae77e727f
commit d2e4362f48
11 changed files with 53 additions and 33 deletions

View File

@@ -30,7 +30,7 @@ var FileLoader = {
return;
}
currentAttempt = currentAttempt + 1;
setTimeout(obj.send, FileLoader.options.retryInterval);
setTimeout(obj.send.bind(obj), FileLoader.options.retryInterval);
};
xhr.onload = function(e) {
if (onload) onload(xhr, e);