1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 02:14:39 -05:00

Refactor code :3

This commit is contained in:
Ashley 2023-05-21 20:21:13 +00:00
parent ae9e80b5e5
commit afd6420244

View file

@ -221,16 +221,9 @@ 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
}
const browser = req.useragent.browser;
const IsOldWindows = (uaos === "Windows 7" || uaos === "Windows 8") && browser === "Firefox";
renderTemplate(res, req, "poketube.ejs", {
color: data.color,