Update app.js

master
Andy Smy 2025-05-13 07:33:31 +01:00 committed by GitHub
parent fa83257fc1
commit 5cdc232853
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -423,6 +423,10 @@ function newInnings() {
} }
// initialise file in storage // initialise file in storage
var file = require("Storage").open("matchlog.csv","a"); var file = require("Storage").open("matchlog.csv","a");
// save state on exit TODO WIP
E.on("kill", function() {
console.log("Umpire app closed");
});
// start app // start app
newInnings(); // prepare 1st innings newInnings(); // prepare 1st innings
var menu = showMainMenu(); // ready to play var menu = showMainMenu(); // ready to play