diff --git a/src/mami.js/main.js b/src/mami.js/main.js index 97bc9a4..bcd5dd0 100644 --- a/src/mami.js/main.js +++ b/src/mami.js/main.js @@ -772,9 +772,6 @@ const MamiInit = async args => { const entry = sbUploads.createEntry(file); const task = ctx.eeprom.create(file); - task.onProgress(prog => { - entry.progress = prog.progress; - }); entry.addOption({ name: 'cancel', text: 'Cancel upload', @@ -782,7 +779,7 @@ const MamiInit = async args => { }); try { - const fileInfo = await task.start(); + const fileInfo = await task.start(prog => { entry.progress = prog.progress; }); entry.optionsVisible = false; entry.uploadInfo = fileInfo;