fix apps
This commit is contained in:
@ -33,7 +33,7 @@ async function loadGames() {
|
|||||||
newElement.setAttribute("data-target", element.directory);
|
newElement.setAttribute("data-target", element.directory);
|
||||||
newElement.setAttribute("data-image", element.image);
|
newElement.setAttribute("data-image", element.image);
|
||||||
newElement.setAttribute("class", "game");
|
newElement.setAttribute("class", "game");
|
||||||
newElement.setAttribute("href", `/loader.html?title=${encodeURIComponent(element.name)}&dir=${element.directory}&img=${element.image}&type=g`);
|
newElement.setAttribute("href", `/loader.html?title=${encodeURIComponent(element.name)}&dir=${element.directory}&img=${element.image}&type=${pageData.type}`);
|
||||||
let image = document.createElement("img");
|
let image = document.createElement("img");
|
||||||
image.src = `/resources/${pageData.prefix}/${element.directory}/${element.image}`;
|
image.src = `/resources/${pageData.prefix}/${element.directory}/${element.image}`;
|
||||||
image.loading = `lazy`;
|
image.loading = `lazy`;
|
||||||
|
|||||||
Reference in New Issue
Block a user