Reset bake button background when state changed

This commit is contained in:
j433866 2019-04-30 12:58:29 +01:00
parent 145fba5949
commit 1f39a922d1
1 changed files with 2 additions and 0 deletions

View File

@ -378,6 +378,8 @@ ${navigator.userAgent}
const bakeButton = document.getElementById("bake"),
btnText = bakeButton.querySelector("span");
bakeButton.style.background = "";
if (cancel) {
btnText.innerText = "Cancel";
bakeButton.classList.remove("btn-success");