mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 03:39:00 +01:00
Refactor code :3
This commit is contained in:
parent
ae9e80b5e5
commit
afd6420244
1 changed files with 3 additions and 10 deletions
|
@ -221,17 +221,10 @@ core.video(v).then((data) => {
|
|||
|
||||
|
||||
var uaos = req.useragent.os
|
||||
var IsOldWindows;
|
||||
const browser = req.useragent.browser;
|
||||
const IsOldWindows = (uaos === "Windows 7" || uaos === "Windows 8") && browser === "Firefox";
|
||||
|
||||
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue