From 589d18b4fc08ed1726572ddebb04b41c66eda963 Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Thu, 5 Mar 2020 15:34:37 +0000 Subject: [PATCH] Remove info file when removing an app (fix #113) --- comms.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/comms.js b/comms.js index 691a60ca7..4a0022aa4 100644 --- a/comms.js +++ b/comms.js @@ -60,7 +60,8 @@ getInstalledApps : () => { }); }, removeApp : app => { // expects an app structure - var cmds = app.storage.map(file=>{ + var storage = [{name:app.id+".info"}].concat(app.storage); + var cmds = storage.map(file=>{ return `\x10require("Storage").erase(${toJS(file.name)});\n`; }).join(""); console.log("removeApp", cmds);