From 16916b5f54333becda74c8787a518260a9e3bc67 Mon Sep 17 00:00:00 2001 From: joshuaboud Date: Tue, 8 Jun 2021 15:07:38 -0300 Subject: [PATCH] refresh after proc exits to get proper file size --- navigator/navigator.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/navigator/navigator.js b/navigator/navigator.js index a54a3de..d5c257a 100644 --- a/navigator/navigator.js +++ b/navigator/navigator.js @@ -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(); }