mirror of https://github.com/espruino/BangleApps
0.03: Remove global declaration of BANGLEJS2 var (fix #2123)
parent
674ef0aa13
commit
88533f84bc
|
@ -1,2 +1,3 @@
|
|||
0.01: New Widget!
|
||||
0.02: Now also visible on Bangle.js 2
|
||||
0.03: Remove global declaration of BANGLEJS2 var (fix #2123)
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"id": "widram",
|
||||
"name": "RAM Widget",
|
||||
"shortName": "RAM Widget",
|
||||
"version": "0.02",
|
||||
"version": "0.03",
|
||||
"description": "Display your Bangle's RAM usage percentage in a widget",
|
||||
"icon": "widget.png",
|
||||
"type": "widget",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
(() => {
|
||||
function draw() {
|
||||
BANGLEJS2 = process.env.HWVERSION==2;
|
||||
const BANGLEJS2 = process.env.HWVERSION==2;
|
||||
g.reset();
|
||||
var m = process.memory();
|
||||
var percent = Math.round(m.usage*100/m.total);
|
||||
|
|
Loading…
Reference in New Issue