QR: Fix errors from progress events after abort.

This commit is contained in:
ccd0 2019-03-24 03:09:53 -07:00
parent 14a7f55e1a
commit 1e7fb54367

View File

@ -711,6 +711,7 @@ QR =
form: $.formData formData
if Conf['Show Upload Progress']
options.onprogress = (e) ->
return if @ isnt QR.req?.upload # aborted
if e.loaded < e.total
# Uploading...
QR.req.progress = "#{Math.round e.loaded / e.total * 100}%"