Not needed - the 12 hour config is in setting.json

master
deirdreobyrne 2022-06-06 22:17:56 +01:00 committed by GitHub
parent f10ff7cb2f
commit 3fc2c33fc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 26 deletions

View File

@ -1,26 +0,0 @@
(function(back) {
var settings = Object.assign({
"12hour": false,
}, require('Storage').readJSON("bigdclock.json", true) || {});
function set12hour(val) {
settings["12hour"]=val;
require('Storage').writeJSON("bigdclock.json", settings);
}
var mainmenu = {
"": {
"title": "BigDClock"
},
"< Back": () => back(),
"Clock type": {
value: (settings["12hour"] !== undefined ? settings["12hour"] : false),
format: v => v ? "12 hr" : "24 hr",
onchange: v=> { set12hour(v) }
}
};
E.showMenu(mainmenu);
});