mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-24 04:28:03 +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", {
|
||||
color: data.color,
|
||||
color2: data.color2,
|
||||
linkify,
|
||||
engagement,
|
||||
IsOldWindows,
|
||||
support,
|
||||
u:u.url,
|
||||
isvidious:u.isInvidiousURL,
|
||||
|
|
Loading…
Reference in a new issue