Skip to content

Commit 274b518

Browse files
authored
Fix define data error
1 parent 0875f51 commit 274b518

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/widsmartbatt/widget.js

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

2121
function draw() {
2222
let batt=E.getBattery();
23-
data = require("smartbatt").get();
23+
let data = require("smartbatt").get();
2424
let hrsLeft=data.hrsLeft;
2525
let days = hrsLeft / 24;
2626

0 commit comments

Comments
 (0)