From afbedb401cf9d0573768e64e1699191a326b1b5f Mon Sep 17 00:00:00 2001 From: lifehackerhansol Date: Wed, 9 Aug 2023 23:38:34 -0700 Subject: [PATCH] get-started: switch from CSS-based error messages to alerts --- assets/js/selecting.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/js/selecting.js b/assets/js/selecting.js index ce094ff43cbc7..ff70b6fce0144 100644 --- a/assets/js/selecting.js +++ b/assets/js/selecting.js @@ -264,7 +264,7 @@ function redirect() { document.getElementById("result_invalidVersion").style.display = "none"; document.getElementById("result_methodUnavailable").style.display = "none"; if ((!isN3DS) && (!isO3DS)) { - document.getElementById("result_noneSelected").style.display = "block"; + alert(document.getElementById("result_noneSelected").innerText); return; } @@ -274,7 +274,7 @@ function redirect() { else if(isN3DS) model = DEVICE_N3DS; if (!validate_version(major, minor, nver, region, model)) { - document.getElementById("result_invalidVersion").style.display = "block"; + alert(document.getElementById("result_invalidVersion").innerText); return; } @@ -290,6 +290,6 @@ function redirect() { if (redirected) return true; // if it actually got to this point, there is no exploit available. - document.getElementById("result_methodUnavailable").style.display = "block"; + alert(document.getElementById("result_methodUnavailable").innerText); return false; }