From cec7baadba9091f87966066e2fa4e8f5dce0a17a Mon Sep 17 00:00:00 2001 From: Crementif <26669564+Crementif@users.noreply.github.com> Date: Fri, 30 Apr 2021 14:50:28 +0200 Subject: [PATCH] [docs] Fix switch cases of website MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Don't forget about your break's in your switch cases kids! 😉 --- docs/assets/javascript/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/assets/javascript/index.js b/docs/assets/javascript/index.js index 777a58c1..0ff0c686 100644 --- a/docs/assets/javascript/index.js +++ b/docs/assets/javascript/index.js @@ -60,12 +60,14 @@ async function searchSupportedGames(searchString) { document.getElementsByClassName("navbar-brand")[0].innerText="CEMU Hacks"; document.getElementsByClassName("display-4")[0].innerText="CEMU Hacks"; document.getElementsByClassName("lead")[0].innerText = "Get your online CEMU hax here!!"; + break; } case "ign": { // IGN based for calling it community built presets & plugins instead of hacks document.title = "Home - Cemu Plugins"; document.getElementsByClassName("navbar-brand")[0].innerText="Cemu Plugins"; document.getElementsByClassName("display-4")[0].innerText="Cemu Plugins"; + break; } } if (searchString != "*") resultsHintSearch = supportedGamesSearchSet.get(searchString); @@ -179,4 +181,4 @@ function hideAllGames() { // searchSupportedGames(document.querySelector("#supported-games-search input.form-control").value); // If a user loads the page, execute the search inmediately. Initially meant so that if you'd return to the page and still had a search term, it would look correct. document.querySelector("#supported-games-search input.form-control").value = ""; // Don't fetch stuff automatically when the user doesn't want to search. Considered better since it's an optional feature. timeago().render(document.querySelectorAll('.commit-time')); -document.getElementById("viewAllGames").onclick=viewAllGames; \ No newline at end of file +document.getElementById("viewAllGames").onclick=viewAllGames;