refresh after proc exits to get proper file size

This commit is contained in:
joshuaboud 2021-06-08 15:07:38 -03:00
parent c1c473708b
commit 16916b5f54
No known key found for this signature in database
GPG Key ID: 17EFB59E2A8BF50E

View File

@ -1176,7 +1176,7 @@ class FileUpload {
window.alert(data);
})
this.proc.done((data) => {
this.nav_window_ref.refresh();
})
this.reader.onload = (function(uploader_ref) {
return async function(evt) {
@ -1220,7 +1220,6 @@ class FileUpload {
done() {
this.proc.input(); // close stdin
this.nav_window_ref.refresh();
this.remove_html_element();
}