diff --git a/js/script.js b/js/script.js index 2be78c9..a9f32e4 100644 --- a/js/script.js +++ b/js/script.js @@ -346,7 +346,11 @@ async function disconnect() { async function setStatusAlert(message, status = "success") { let constructedStatus = "alert-" + status; statusAlertBox.classList.add(constructedStatus); - statusAlertBox.innerText = message; + if(message.includes("")){ + statusAlertBox.innerHTML = message; + } else { + statusAlertBox.innerText = message; + } statusAlertBox.classList.remove("d-none"); } @@ -1488,6 +1492,9 @@ function toggleUIConnected(connected, msg = "") { lbl = "Error"; sdstat("error","hardware-missing"); let err = `${message} Click the Help button below for common fixes. Then refresh this page to attempt flashing again.`; + if(message.toLowerCase().includes("break")){ + err = `${message}. To fix this issue please go to https://o.mg.lol/setup/breakfix.html.` + } setStatusAlert(err, "danger"); accordionExpand(2); accordionDisable();