Signed-off-by: Ashley <iamashley@duck.com>
This commit is contained in:
Ashley 2023-11-23 07:40:51 +00:00
parent 3688d38055
commit 21259a2225

View file

@ -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";