Skip to content

Commit

Permalink
Make sure all modals are deleted when stopping
Browse files Browse the repository at this point in the history
  • Loading branch information
akioweh authored Sep 12, 2021
1 parent 6d07ca8 commit 9a4471a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
semiTOGGLE = false;
autoTOGGLE = false;
console.log(err);
deleteModals();
alert("Error, Auto-Answer Stopped.");
}
}
Expand All @@ -130,6 +131,7 @@
alert("Starting Semi-Auto-Answer");
await answerLoop(copyAnswer);
} else {
deleteModals();
alert("Stopping Semi-Auto-Answer");
semiTOGGLE = false;
}
Expand All @@ -143,6 +145,7 @@
alert("Starting Fully-Auto-Answer");
await answerLoop(submitAnswer);
} else {
deleteModals();
alert("Stopping Fully-Auto-Answer");
autoTOGGLE = false;
}
Expand Down

0 comments on commit 9a4471a

Please sign in to comment.