From 9a4471a70475c051c64011ed496687d7152f7fa0 Mon Sep 17 00:00:00 2001 From: KEN-2000l <79527273+KEN-2000l@users.noreply.github.com> Date: Sun, 12 Sep 2021 21:37:50 +0400 Subject: [PATCH] Make sure all modals are deleted when stopping --- script.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script.js b/script.js index 9c7c8c9..a34de63 100644 --- a/script.js +++ b/script.js @@ -108,6 +108,7 @@ semiTOGGLE = false; autoTOGGLE = false; console.log(err); + deleteModals(); alert("Error, Auto-Answer Stopped."); } } @@ -130,6 +131,7 @@ alert("Starting Semi-Auto-Answer"); await answerLoop(copyAnswer); } else { + deleteModals(); alert("Stopping Semi-Auto-Answer"); semiTOGGLE = false; } @@ -143,6 +145,7 @@ alert("Starting Fully-Auto-Answer"); await answerLoop(submitAnswer); } else { + deleteModals(); alert("Stopping Fully-Auto-Answer"); autoTOGGLE = false; }