About app: Update version checker for new filename type
parent
e755d64cc1
commit
9a63beefb8
|
|
@ -28,7 +28,7 @@
|
||||||
{ "id": "about",
|
{ "id": "about",
|
||||||
"name": "About",
|
"name": "About",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"version":"0.01",
|
"version":"0.02",
|
||||||
"description": "Bangle.js About page - showing software version, stats, and a collaborative mural from the Bangle.js KickStarter backers",
|
"description": "Bangle.js About page - showing software version, stats, and a collaborative mural from the Bangle.js KickStarter backers",
|
||||||
"tags": "tool,system",
|
"tags": "tool,system",
|
||||||
"allow_emulator":true,
|
"allow_emulator":true,
|
||||||
|
|
|
||||||
|
|
@ -1 +1,2 @@
|
||||||
0.01: New App!
|
0.01: New App!
|
||||||
|
0.02: Update version checker for new filename type
|
||||||
|
|
|
||||||
|
|
@ -15,9 +15,9 @@ function getVersion(name,file) {
|
||||||
var v = ("object"==typeof j)?j.version:false;
|
var v = ("object"==typeof j)?j.version:false;
|
||||||
g.drawString(v?(name+" "+(v?"v"+v:"Unknown")):"NO "+name,0,y+=h);
|
g.drawString(v?(name+" "+(v?"v"+v:"Unknown")):"NO "+name,0,y+=h);
|
||||||
}
|
}
|
||||||
getVersion("Bootloader","+boot");
|
getVersion("Bootloader","boot.info");
|
||||||
getVersion("Launcher","+launch");
|
getVersion("Launcher","launch.info");
|
||||||
getVersion("Settings","+setting");
|
getVersion("Settings","setting.info");
|
||||||
|
|
||||||
y+=h;
|
y+=h;
|
||||||
g.drawString(MEM.total+" JS Variables available",0,y+=h);
|
g.drawString(MEM.total+" JS Variables available",0,y+=h);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue