diff --git a/CHANGELOG.md b/CHANGELOG.md index b1ab0a701..649773838 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,3 +24,4 @@ Changed for individual apps are listed in `apps/appname/ChangeLog` * Fix error in 'Install Default Apps' if Flash storage is full enough that erasing takes a while * Fixed animated progress bar on app removal * Added ability to specify dependencies (used for `notify` at the moment) +* Fixed Promise-based bug in removeApp diff --git a/js/comms.js b/js/comms.js index 160e5c0e9..d828c9bef 100644 --- a/js/comms.js +++ b/js/comms.js @@ -140,7 +140,7 @@ const Comms = { return cmd.replace('\u0001', '\\x01') }).join(""); console.log(" removeApp", cmds); - return Comms.reset().then(new Promise((resolve,reject) => { + return Comms.reset().then(() => new Promise((resolve,reject) => { Puck.write(`\x03\x10E.showMessage('Erasing\\n${app.id}...')${cmds}\x10E.showMessage('Hold BTN3\\nto reload')\n`,(result) => { Progress.hide({sticky:true}); if (result===null) return reject("");