Update widget.js

master^2
RKBoss6 2025-07-30 11:13:37 -04:00 committed by GitHub
parent 79dcbd7fd1
commit 0875f516a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 5 deletions

View File

@ -20,11 +20,7 @@
function draw() { function draw() {
let batt=E.getBattery(); let batt=E.getBattery();
try {
data = require("smartbatt").get(); data = require("smartbatt").get();
} catch (e) {
data.hrsLeft = 0;
}
let hrsLeft=data.hrsLeft; let hrsLeft=data.hrsLeft;
let days = hrsLeft / 24; let days = hrsLeft / 24;