fix stuff + add stuff
This commit is contained in:
parent
73b2e4c40e
commit
a1d19a8616
@ -307,20 +307,12 @@ module.exports = function (app, config, renderTemplate) {
|
|||||||
(uaos === "Windows 7" || uaos === "Windows 8") &&
|
(uaos === "Windows 7" || uaos === "Windows 8") &&
|
||||||
browser === "Firefox";
|
browser === "Firefox";
|
||||||
|
|
||||||
if (uaos === "Windows XP" || uaos === "Windows Vista")
|
|
||||||
res.redirect("/lite?v=" + req.query.v);
|
|
||||||
|
|
||||||
if (req.useragent.source.includes("Nintendo WiiU"))
|
|
||||||
res.redirect("/lite?v=" + req.query.v);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (req.query.from === "short") var shortsui = true;
|
if (req.query.from === "short") var shortsui = true;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
renderTemplate(res, req, "watch.ejs", {
|
renderTemplate(res, req, "watch.ejs", {
|
||||||
color: data.color,
|
color: data?.color,
|
||||||
color2: data.color2,
|
color2: data?.color2,
|
||||||
linkify,
|
linkify,
|
||||||
engagement,
|
engagement,
|
||||||
linkto,
|
linkto,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user