0.03: Remove global declaration of BANGLEJS2 var (fix #2123)

pull/2126/head
Gordon Williams 2022-09-16 09:08:48 +01:00
parent 674ef0aa13
commit 88533f84bc
3 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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",

View File

@ -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);