Skip to content

Commit

Permalink
More idiot moves :D
Browse files Browse the repository at this point in the history
  • Loading branch information
wearrrrr committed Dec 9, 2023
1 parent f52747a commit 38e4697
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ts/lib/games.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,10 @@ async function addGame(name: string, value: gameObject, gamesElement: HTMLDivEle
// e.preventDefault();
// })
// }
if (checkInstallStatus) gameCard.style.background = `url(assets/game-images/${value.img})`;
gameCard.addEventListener('contextmenu', async (e) => {
if (checkInstallStatus) {
gameCard.style.background = `url(assets/game-images/${value.img})`;
e.preventDefault();
gameConfigurator(value.game_id);
} else {
Expand Down

0 comments on commit 38e4697

Please sign in to comment.