From 7799ef903ba36319a307861dd9bd97f1aaf61fa9 Mon Sep 17 00:00:00 2001 From: Ashley Date: Fri, 6 Oct 2023 14:54:03 +0000 Subject: [PATCH] use discover.ejs :3 --- src/libpoketube/init/pages-404-and-main.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libpoketube/init/pages-404-and-main.js b/src/libpoketube/init/pages-404-and-main.js index 3d8569a6..a9d49c31 100644 --- a/src/libpoketube/init/pages-404-and-main.js +++ b/src/libpoketube/init/pages-404-and-main.js @@ -56,7 +56,7 @@ module.exports = function (app, config, renderTemplate) { j = getJson(modules.toJson(text)); } - renderTemplate(res, req, "main.ejs", { + renderTemplate(res, req, "discover.ejs", { tab: req.query.tab, isMobile: req.useragent.isMobile, mobilesearch: req.query.mobilesearch, @@ -70,8 +70,7 @@ module.exports = function (app, config, renderTemplate) { app.get("/:v*?", async function (req, res) { const uaos = req.useragent.os; const browser = req.useragent.browser; - const isOldWindows = - (uaos === "Windows 7" || uaos === "Windows 8") && browser === "Firefox"; + const isOldWindows = (uaos === "Windows 7" || uaos === "Windows 8") && browser === "Firefox"; const rendermainpage = () => { if (req.useragent.isMobile) {