Skip to content

Commit

Permalink
get-started: switch from CSS-based error messages to alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
lifehackerhansol committed Aug 10, 2023
1 parent d7a2864 commit afbedb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/js/selecting.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand All @@ -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;
}

0 comments on commit afbedb4

Please sign in to comment.