From fb326236f1c5c25f33fe4df017b0f399e1b7049c Mon Sep 17 00:00:00 2001 From: jeudy Date: Fri, 28 Sep 2018 14:58:53 -0400 Subject: [PATCH] replace lamba function with regular function --- strata.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/strata.js b/strata.js index aa30e66..8972155 100644 --- a/strata.js +++ b/strata.js @@ -1504,7 +1504,11 @@ xhr.upload.addEventListener("progress", function(evt) { if (evt.lengthComputable) { var percentComplete = evt.loaded * 100 / evt.total; - onProgress(percentComplete, () => xhr.abort()); + var abort = function () { + xhr.abort(); + }; + + onProgress(percentComplete, abort); } }, false); }