Espruino/libs/js/banglejs/Bangle_showLauncher.js
Ben Whittaker ccd06effa1 Make Bangle.showLauncher() use less ram
Avoids having the contents of all files in memory at the same time.
2020-06-13 14:24:20 -04:00

9 lines
260 B
JavaScript

(function() {
var l = require("Storage").list(/\.info$/).map(file => {
var app = require("Storage").readJSON(file,1);
if (app && app.type == "launch") return app;
}).find(x=>x);
if (l) load(l.src);
else E.showMessage("Launcher\nnot found");
})