Skip to content

Commit

Permalink
Fixed the confirmation prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluestonex63 committed Aug 3, 2023
1 parent 5f73276 commit 3544104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -633,8 +633,8 @@ function mins_secs(e) {
}
}
document.querySelector("#generate").addEventListener("click", (e) => {
e.preventDefault()
if (confirm(`Are you sure you want to go through with this? (It will delete all your current runs!)`)) {
e.preventDefault()
if (!ge) {
alert("Please first input a game to generate runs")
} else {
Expand Down

0 comments on commit 3544104

Please sign in to comment.