astrocalc: fix lint warnings
- Comment out an unused function - move initialization, `let m;` further up in the file.master
parent
db4ce65672
commit
fe3142355b
|
|
@ -232,6 +232,8 @@ function drawSunShowPage(gps, key, date) {
|
|||
return null;
|
||||
}
|
||||
|
||||
let m;
|
||||
|
||||
function sunIndexPageMenu(gps) {
|
||||
const sunTimes = SunCalc.getTimes(new Date(), gps.lat, gps.lon);
|
||||
|
||||
|
|
@ -300,9 +302,9 @@ function indexPageMenu(gps) {
|
|||
return E.showMenu(menu);
|
||||
}
|
||||
|
||||
function getCenterStringX(str) {
|
||||
return (g.getWidth() - g.stringWidth(str)) / 2;
|
||||
}
|
||||
//function getCenterStringX(str) {
|
||||
// return (g.getWidth() - g.stringWidth(str)) / 2;
|
||||
//}
|
||||
|
||||
function init() {
|
||||
let location = require("Storage").readJSON("mylocation.json",1)||{"lat":51.5072,"lon":0.1276,"location":"London"};
|
||||
|
|
@ -311,5 +313,4 @@ function init() {
|
|||
Bangle.drawWidgets();
|
||||
}
|
||||
|
||||
let m;
|
||||
init();
|
||||
|
|
|
|||
Loading…
Reference in New Issue