stlap: use closure to avoid hanging onto `arguments` in `showMainMenu`

pull/2760/head
Rob Pilling 2023-05-17 12:54:28 +01:00
parent 9ea17e7f4a
commit 087f6d0f1a
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ function view(fileName) {
let lapMenu = {
'': {
'title': fileNameToDateString(fileName),
'back': showMainMenu
'back': () => showMainMenu()
},
};
lapMenu[`Total time: ${msToHumanReadable(fileData[fileData.length - 1])}`] = () => { };