mirror of https://github.com/espruino/BangleApps
Remove info file when removing an app (fix #113)
parent
f1ba5d8284
commit
589d18b4fc
3
comms.js
3
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);
|
||||
|
|
Loading…
Reference in New Issue