Update app.js

master
Andy Smy 2025-04-21 21:33:52 +01:00 committed by GitHub
parent 8b83483c71
commit abb4b8b3d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 11 deletions

View File

@ -121,16 +121,6 @@ function countDown(dir) {
//console.log(overTimes);
menu = showLog();
Bangle.setUI({
mode : "custom",
btn : ()=>{
if(counter==6) {
startOver();
} else {
resumeGame();
}
}
});
return;
}
}
@ -214,7 +204,16 @@ function incrementWickets(inc) {
wickets += inc;
var timeSig = new Date();
addLog(timeSig, over, counter, "Wicket", wickets);
resumeGame();
E.showPrompt("Amend balls by " + inc + "?").then(function(confirmed) {
if (confirmed) {
E.showPrompt();
Bangle.buzz();
countDown(inc);
resumeGame();
} else {
E.showPrompt();
resumeGame();
}
} else {
E.showPrompt();
Bangle.buzz();