Define widget first

master^2
RKBoss6 2025-07-25 19:47:17 -04:00 committed by GitHub
parent bddd0f769b
commit c09e29b478
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,9 @@
((){
(function(){
WIDGETS["widsmartbatt"] = {
area: "tr",
width: 30,
draw: draw
};
const intervalLow = 30000; // update interval when not charging
const intervalHigh = 30000; // faster update when charging
var showPercent = false;
@ -85,9 +89,5 @@
var id = setInterval(() => WIDGETS["widsmartbatt"].draw(), intervalLow);
WIDGETS["widsmartbatt"] = {
area: "tr",
width: 30,
draw: draw
};
})();