From dede706fefd31b0dce56adc65c501dae6a609e81 Mon Sep 17 00:00:00 2001 From: fowntain Date: Sun, 27 Aug 2023 09:53:05 -0400 Subject: [PATCH] Update apps.js --- static/assets/js/apps.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/assets/js/apps.js b/static/assets/js/apps.js index 0ec5ba0..8de5611 100644 --- a/static/assets/js/apps.js +++ b/static/assets/js/apps.js @@ -13,6 +13,7 @@ const load = () => { fetch('/assets/JSON/apps.json') .then(res => res.json()) .then(games => { + console.log(games) games.forEach(game => { const el = document.createElement('div'); el.classList = 'game'; @@ -20,7 +21,7 @@ const load = () => { document.querySelector('.apps').appendChild(el); el.addEventListener('click', () => { - frame(); + location.href = `/appplayer?id=${game.quickname}`; }); el.addEventListener('mouseenter', gameMouseEnter);