[Website] possibly fix switch case issue

This commit is contained in:
M&M 2021-04-24 23:30:14 -07:00
parent e1a3058551
commit 253f4fbf23

View File

@ -55,17 +55,19 @@ async function searchSupportedGames(searchString) {
let resultsHintSearch = [];
if (Object.keys(altNames).includes(searchString.toLowerCase())) searchString = altNames[searchString.toLowerCase()];
switch (searchString.toLowerCase()) {
case "digital foundry":
case "digital foundry": {
document.title = "Home - CEMU Hacks";
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!!";
case "ign":
}
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";
}
}
if (searchString != "*") resultsHintSearch = supportedGamesSearchSet.get(searchString);
else {
for (supportedGame in supportedGames) {