multitimer: use `let`/`const` for global variables (avoid leaking)

pull/2879/head
Rob Pilling 2023-07-17 20:22:28 +01:00
parent 03861111e2
commit ff6158c329
1 changed files with 5 additions and 5 deletions

View File

@ -2,11 +2,11 @@
Bangle.loadWidgets();
Bangle.drawWidgets();
var R = Bangle.appRect;
var layer;
var drag;
var timerInt1 = [];
var timerInt2 = [];
const R = Bangle.appRect;
let layer;
let drag;
let timerInt1 = [];
let timerInt2 = [];
function getCurrentTime() {
let time = new Date();