recorder: Remove confirmation before delete

The confirmation wasn’t showing on mobile so there was no way to delete a track. Switched back to the original delete immediately behavior.
master
stweedo 2025-06-27 07:47:18 -05:00 committed by GitHub
parent 1ed5594c0f
commit cf7abc53a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 8 deletions

View File

@ -829,13 +829,11 @@ ${trackData.Latitude ? `
switch(task) {
case "delete":
if (confirm(`Are you sure you want to delete Track ${trackid}?`)) {
Util.showModal(`Deleting ${filename}...`);
Util.eraseStorageFile(filename, () => {
Util.hideModal();
getTrackList();
});
}
Util.showModal(`Deleting ${filename}...`);
Util.eraseStorageFile(filename, () => {
Util.hideModal();
getTrackList();
});
break;
case "downloadkml":
downloadTrack(filename, track => saveKML(track, `Bangle.js Track ${trackid}`));
@ -906,4 +904,4 @@ function onInit() {
</script>
</body>
</html>
</html>