mirror of
https://github.com/cemu-project/cemu_graphic_packs.git
synced 2024-11-28 12:24:14 +01:00
[Website] possibly fix switch case issue
This commit is contained in:
parent
e1a3058551
commit
253f4fbf23
@ -55,17 +55,19 @@ async function searchSupportedGames(searchString) {
|
|||||||
let resultsHintSearch = [];
|
let resultsHintSearch = [];
|
||||||
if (Object.keys(altNames).includes(searchString.toLowerCase())) searchString = altNames[searchString.toLowerCase()];
|
if (Object.keys(altNames).includes(searchString.toLowerCase())) searchString = altNames[searchString.toLowerCase()];
|
||||||
switch (searchString.toLowerCase()) {
|
switch (searchString.toLowerCase()) {
|
||||||
case "digital foundry":
|
case "digital foundry": {
|
||||||
document.title = "Home - CEMU Hacks";
|
document.title = "Home - CEMU Hacks";
|
||||||
document.getElementsByClassName("navbar-brand")[0].innerText="CEMU Hacks";
|
document.getElementsByClassName("navbar-brand")[0].innerText="CEMU Hacks";
|
||||||
document.getElementsByClassName("display-4")[0].innerText="CEMU Hacks";
|
document.getElementsByClassName("display-4")[0].innerText="CEMU Hacks";
|
||||||
document.getElementsByClassName("lead")[0].innerText = "Get your online CEMU hax here!!";
|
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
|
// IGN based for calling it community built presets & plugins instead of hacks
|
||||||
document.title = "Home - Cemu Plugins";
|
document.title = "Home - Cemu Plugins";
|
||||||
document.getElementsByClassName("navbar-brand")[0].innerText="Cemu Plugins";
|
document.getElementsByClassName("navbar-brand")[0].innerText="Cemu Plugins";
|
||||||
document.getElementsByClassName("display-4")[0].innerText="Cemu Plugins";
|
document.getElementsByClassName("display-4")[0].innerText="Cemu Plugins";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (searchString != "*") resultsHintSearch = supportedGamesSearchSet.get(searchString);
|
if (searchString != "*") resultsHintSearch = supportedGamesSearchSet.get(searchString);
|
||||||
else {
|
else {
|
||||||
for (supportedGame in supportedGames) {
|
for (supportedGame in supportedGames) {
|
||||||
|
Loading…
Reference in New Issue
Block a user