This commit is contained in:
sky
2026-02-08 19:08:09 -05:00
parent 228fc53083
commit 1ab57e0d4b

View File

@ -3,8 +3,8 @@ let elements = [];
let isDev = [];
let pageData;
async function loadGames() {
if(type == "g") pageData = {path: "/resources/games.json", prefix: "semag"}
else if(type == "a") pageData = {path: "/resources/apps.json", prefix: "sppa"}
if(type == "g") pageData = {path: "/resources/games.json", prefix: "semag", type: "g"}
else if(type == "a") pageData = {path: "/resources/apps.json", prefix: "sppa", type: "a"}
else sAlert("this is not valid");
// taken from mdn
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort