smartbatt: remove whitespace
parent
1eac455a29
commit
c138ba003d
|
|
@ -3,7 +3,7 @@
|
||||||
var batt;
|
var batt;
|
||||||
//updates values
|
//updates values
|
||||||
|
|
||||||
|
|
||||||
function getHrsFormatted(hrsLeft){
|
function getHrsFormatted(hrsLeft){
|
||||||
|
|
||||||
var daysLeft = hrsLeft / 24;
|
var daysLeft = hrsLeft / 24;
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
return Math.round(hrsLeft)+"h";
|
return Math.round(hrsLeft)+"h";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//draws battery icon and fill bar
|
//draws battery icon and fill bar
|
||||||
function drawBatt(){
|
function drawBatt(){
|
||||||
batt =E.getBattery();
|
batt =E.getBattery();
|
||||||
|
|
@ -37,7 +37,7 @@
|
||||||
items: [
|
items: [
|
||||||
{ name : "BattStatus",
|
{ name : "BattStatus",
|
||||||
get : () => {
|
get : () => {
|
||||||
|
|
||||||
drawBatt();
|
drawBatt();
|
||||||
var data=require("smartbatt").get();
|
var data=require("smartbatt").get();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue