fix lint errors

pull/869/head
Gordon Williams 2021-10-28 12:14:14 +01:00
parent eefa209af4
commit cbf69eeaa2
2 changed files with 4 additions and 4 deletions

View File

@ -182,7 +182,7 @@ if (!g.wrapString) { // added in 2v11 - this is a limited functionality polyfill
} }
return lines; return lines;
};\n`; };\n`;
}; }
delete Bangle.appRect; // deleting stops us getting confused by our own decl. builtins can't be deleted delete Bangle.appRect; // deleting stops us getting confused by our own decl. builtins can't be deleted
if (!Bangle.appRect) { // added in 2v11 - polyfill for older firmwares if (!Bangle.appRect) { // added in 2v11 - polyfill for older firmwares
boot += `Bangle.appRect = ((y,w,h)=>({x:0,y:0,w:w,h:h,x2:w-1,y2:h-1}))(g.getWidth(),g.getHeight()); boot += `Bangle.appRect = ((y,w,h)=>({x:0,y:0,w:w,h:h,x2:w-1,y2:h-1}))(g.getWidth(),g.getHeight());

View File

@ -196,7 +196,7 @@ function prevInfo() {
} }
Bangle.on('swipe', dir => { Bangle.on('swipe', dir => {
if (dir == 1) prevInfo() else nextInfo(); if (dir == 1) prevInfo(); else nextInfo();
draw(); draw();
}); });