mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 19:58:00 +01:00
fix this
This commit is contained in:
parent
2ad0ef7ea8
commit
90ca920183
1 changed files with 2 additions and 4 deletions
|
@ -247,7 +247,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
var vidurl = u.losslessurl;
|
var vidurl = u.losslessurl;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!inv_vid.allowedRegions.includes("US")) {
|
if (!inv_vid?.allowedRegions?.includes("US")) {
|
||||||
var vidurl = "https://eu-proxy.poketube.fun";
|
var vidurl = "https://eu-proxy.poketube.fun";
|
||||||
var isvidious = true;
|
var isvidious = true;
|
||||||
}
|
}
|
||||||
|
@ -275,9 +275,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
|
|
||||||
var uaos = req.useragent.os;
|
var uaos = req.useragent.os;
|
||||||
const browser = req.useragent.browser;
|
const browser = req.useragent.browser;
|
||||||
const IsOldWindows =
|
const IsOldWindows = (uaos === "Windows 7" || uaos === "Windows 8") && browser === "Firefox";
|
||||||
(uaos === "Windows 7" || uaos === "Windows 8") &&
|
|
||||||
browser === "Firefox";
|
|
||||||
|
|
||||||
if (uaos === "Windows XP" || uaos === "Windows Vista")
|
if (uaos === "Windows XP" || uaos === "Windows Vista")
|
||||||
res.redirect("/lite?v=" + req.query.v);
|
res.redirect("/lite?v=" + req.query.v);
|
||||||
|
|
Loading…
Reference in a new issue