mirror of https://github.com/espruino/BangleApps
fix lint errors
parent
eefa209af4
commit
cbf69eeaa2
|
@ -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());
|
||||||
|
|
|
@ -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();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue