From 21259a22251093bdcc311e59842dcfcb1167f232 Mon Sep 17 00:00:00 2001 From: Ashley Date: Thu, 23 Nov 2023 07:40:51 +0000 Subject: [PATCH] lol Signed-off-by: Ashley --- src/libpoketube/init/pages-404-and-main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libpoketube/init/pages-404-and-main.js b/src/libpoketube/init/pages-404-and-main.js index 0429ba68..ca1b27ff 100644 --- a/src/libpoketube/init/pages-404-and-main.js +++ b/src/libpoketube/init/pages-404-and-main.js @@ -40,8 +40,7 @@ const splash = [ "also try invidious!" ] -const random = - splash[Math.floor(Math.random() * splash.length)]; + function getJson(str) { @@ -96,6 +95,7 @@ module.exports = function (app, config, renderTemplate) { app.get("/:v*?", async function (req, res) { const uaos = req.useragent.os; + const random = splash[Math.floor(Math.random() * splash.length)]; const browser = req.useragent.browser; const isOldWindows = (uaos === "Windows 7" || uaos === "Windows 8") && browser === "Firefox"; @@ -119,4 +119,4 @@ module.exports = function (app, config, renderTemplate) { return rendermainpage(); }); -}; +}; \ No newline at end of file