diff --git a/src/libpoketube/init/pages-static.js b/src/libpoketube/init/pages-static.js index b9afccd2..9da952a0 100644 --- a/src/libpoketube/init/pages-static.js +++ b/src/libpoketube/init/pages-static.js @@ -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"); }