im sorry lol

This commit is contained in:
ashley 2024-05-31 11:41:01 +00:00
parent 8203cc8f81
commit ccd7f8e14b

View file

@ -214,7 +214,7 @@ app.get("/game-hub", function (req, res) {
var gameslist = ["pong", "tic-tac-toe", "sudoku", "snake"];
var requestedGame = req.query.game;
if (!requestedGame || !gameslist.includes(requestedGame)) {
if (!gameslist.includes(requestedGame)) {
return renderTemplate(res, req, "404.ejs");
}