mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 08:58:13 +01:00
add isoldwindows lol
This commit is contained in:
parent
d1ba50ee79
commit
464c2b37e8
1 changed files with 12 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue