From 35441047d911ec94faf3b9aca2bb9d17340939c9 Mon Sep 17 00:00:00 2001 From: Bluestonex63 <103859845+Bluestonex63@users.noreply.github.com> Date: Fri, 4 Aug 2023 00:41:17 +0100 Subject: [PATCH] Fixed the confirmation prompt --- script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.js b/script.js index 9bc5939..9783cba 100644 --- a/script.js +++ b/script.js @@ -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 {