Skip to content

Commit 0875f51

Browse files
authored
Update widget.js
1 parent 79dcbd7 commit 0875f51

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

apps/widsmartbatt/widget.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@
2020

2121
function draw() {
2222
let batt=E.getBattery();
23-
try {
24-
data = require("smartbatt").get();
25-
} catch (e) {
26-
data.hrsLeft = 0;
27-
}
23+
data = require("smartbatt").get();
2824
let hrsLeft=data.hrsLeft;
2925
let days = hrsLeft / 24;
3026

0 commit comments

Comments
 (0)