remove js for featured game

This commit is contained in:
Russell2259
2023-08-21 16:32:02 -06:00
parent b6448add7f
commit 9d6225ea7f
2 changed files with 1 additions and 13 deletions
-12
View File
@@ -111,18 +111,6 @@ if (window.self === window.top) {
}, 500);
}
if (location.pathname === '/') {
fetch('/assets/JSON/games.json')
.then(res => res.json())
.then(games => {
const randomID = Math.floor(Math.random() * games.length);
const game = games[randomID];
document.querySelector('.featuredimg').parentElement.href = `/play?id=${randomID}`
document.querySelector('.featuredimg').src = game.image;
}).catch(e => new PolarisError('Failed to load featured game'));
}
const Polaris = { Settings, Games, Apps, WPM, PolarisError, registerLinks };
export default Polaris;
+1 -1
View File
@@ -12,4 +12,4 @@
"dest": "index.js"
}
]
}
}