Skip to content

Commit 45dc986

Browse files
authored
Update settings.js
1 parent fecb70f commit 45dc986

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

apps/chargeanim/settings.js

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// default values
77
showBatPercent: true,
88
showTime: true,
9-
keepScreenOn:false,
9+
1010

1111
}, require('Storage').readJSON(FILE, true) || {});
1212

@@ -37,17 +37,8 @@
3737
// format: ... may be specified as a function which converts the value to a string
3838
// if the value is a boolean, showMenu() will convert this automatically, which
3939
// keeps settings menus consistent
40-
},
41-
'Keep Backlight On': {
42-
value: !!settings.keepScreenOn, // !! converts undefined to false
43-
onchange: v => {
44-
settings.keepScreenOn = v;
45-
writeSettings();
46-
}
47-
// format: ... may be specified as a function which converts the value to a string
48-
// if the value is a boolean, showMenu() will convert this automatically, which
49-
// keeps settings menus consistent
50-
},
40+
}
41+
5142

5243
});
5344
})

0 commit comments

Comments
 (0)