New notes about breaking changes

pull/191/head
Gordon Williams 2020-02-28 12:16:57 +00:00
parent 50e3c852fb
commit 3726a44fb5
2 changed files with 9 additions and 2 deletions

View File

@ -32,8 +32,7 @@ getInstalledApps : () => {
return new Promise((resolve,reject) => {
Puck.write("\x03",(result) => {
if (result===null) return reject("");
// could use .list(/\.info$/) on new Espruino firmwares...
Puck.eval('require("Storage").list().filter(f=>f.endsWith(".info")).map(f=>{var j=require("Storage").readJSON(f)||{};j.id=f.substr(1);return j})', (appList,err) => {
Puck.eval('require("Storage").list(/\.info$/).map(f=>{var j=require("Storage").readJSON(f)||{};j.id=f.substr(1);return j})', (appList,err) => {
if (appList===null) return reject(err || "");
console.log("getInstalledApps", appList);
resolve(appList);

View File

@ -49,6 +49,14 @@
</section>-->
</header>
<div class="container" style="padding-top:4px">
<p><span class="label label-error">App Loader is incompatible with 'old' Bangle.js firmwares</span>
Please <a href="https://www.espruino.com/Bangle.js#firmware-updates" target="_blank">(<a href="http://forum.espruino.com/conversations/344251/" target="_blank">more info</a>)Update to the latest firmware</a> or
<a href="https://banglejs.com/oldapps/">use the legacy apps</a>.
</p>
</div>
<ul class="tab tab-block" id="tab-navigate">
<li class="tab-item active" id="tab-librarycontainer">
<a href="javascript:showTab('librarycontainer')">Library</a>