Remove info file when removing an app (fix #113)

pull/116/head
Gordon Williams 2020-03-05 15:34:37 +00:00
parent f1ba5d8284
commit 589d18b4fc
1 changed files with 2 additions and 1 deletions

View File

@ -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);