add isoldwindows lol

This commit is contained in:
Ashley 2023-05-15 16:22:36 +00:00
parent d1ba50ee79
commit 464c2b37e8

View file

@ -220,12 +220,24 @@ core.video(v).then((data) => {
} }
var uaos = req.useragent.os
var IsOldWindows;
if(uaos == "Windows 7" && req.useragent.browser == "Firefox" ) {
IsOldWindows = true
} else if(uaos == "Windows 8" && req.useragent.browser == "Firefox") {
IsOldWindows = true
} else {
IsOldWindows = false
}
renderTemplate(res, req, "poketube.ejs", { renderTemplate(res, req, "poketube.ejs", {
color: data.color, color: data.color,
color2: data.color2, color2: data.color2,
linkify, linkify,
engagement, engagement,
IsOldWindows,
support, support,
u:u.url, u:u.url,
isvidious:u.isInvidiousURL, isvidious:u.isInvidiousURL,