get-started: switch from CSS-based error messages to alerts

This commit is contained in:
lifehackerhansol 2023-08-09 23:38:34 -07:00
parent d7a2864a11
commit afbedb401c
No known key found for this signature in database
GPG key ID: 80FB184AFC0B3B0E

View file

@ -264,7 +264,7 @@ function redirect() {
document.getElementById("result_invalidVersion").style.display = "none"; document.getElementById("result_invalidVersion").style.display = "none";
document.getElementById("result_methodUnavailable").style.display = "none"; document.getElementById("result_methodUnavailable").style.display = "none";
if ((!isN3DS) && (!isO3DS)) { if ((!isN3DS) && (!isO3DS)) {
document.getElementById("result_noneSelected").style.display = "block"; alert(document.getElementById("result_noneSelected").innerText);
return; return;
} }
@ -274,7 +274,7 @@ function redirect() {
else if(isN3DS) model = DEVICE_N3DS; else if(isN3DS) model = DEVICE_N3DS;
if (!validate_version(major, minor, nver, region, model)) { if (!validate_version(major, minor, nver, region, model)) {
document.getElementById("result_invalidVersion").style.display = "block"; alert(document.getElementById("result_invalidVersion").innerText);
return; return;
} }
@ -290,6 +290,6 @@ function redirect() {
if (redirected) return true; if (redirected) return true;
// if it actually got to this point, there is no exploit available. // 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; return false;
} }