Delete apps/umpire/umpire.settings.js

master
Andy Smy 2025-05-08 23:53:54 +01:00 committed by GitHub
parent 1660104262
commit c958ad4ae7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 25 deletions

View File

@ -1,25 +0,0 @@
(function(back) {
var FILE = "umpire.json";
// Load settings
var settings = Object.assign({
ballsPerOver: 6,
}, require('Storage').readJSON(FILE, true) || {});
function writeSettings() {
require('Storage').writeJSON(FILE, settings);
}
// Show the menu
E.showMenu({
"" : { "title" : "Umpire Ball Counter" },
"< Back" : () => back(),
'Balls per over': {
value: 6|settings.ballsPerOver, // 6| converts undefined to 6
min: 4, max: 10,
onchange: v => {
settings.ballsPerOver = v;
writeSettings();
}
},
});
})