From c488771d5d3353c791c97c38d80c3a40e946c6c4 Mon Sep 17 00:00:00 2001 From: Korbs Date: Tue, 30 Apr 2024 23:04:20 -0400 Subject: [PATCH] Add secure and verify to landing --- src/libpoketube/init/pages-404-and-main.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/libpoketube/init/pages-404-and-main.js b/src/libpoketube/init/pages-404-and-main.js index 1fa51b42..123197d9 100644 --- a/src/libpoketube/init/pages-404-and-main.js +++ b/src/libpoketube/init/pages-404-and-main.js @@ -117,12 +117,24 @@ module.exports = function (app, config, renderTemplate) { const browser = req.useragent.browser; const isOldWindows = (uaos === "Windows 7" || uaos === "Windows 8") && browser === "Firefox"; + const secure = [ + "poketube.fun", + "localhost" // Testing purposes + ].includes(req.hostname); + const verify = [ + "poketube.fun", + "poke.ashley0143.xyz", + "localhost" + ].includes(req.hostname); + const rendermainpage = () => { if (req.useragent.isMobile) { return res.redirect("/app"); } return renderTemplate(res, req, "landing.ejs", { + secure, + verify, isOldWindows, random });