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

add this lol

This commit is contained in:
ashley 2024-09-16 19:40:16 +00:00
parent 50eaf51c5f
commit db26363c95

View file

@ -314,6 +314,12 @@ module.exports = function (app, config, renderTemplate) {
if (req.useragent.source.includes("Nintendo WiiU")) if (req.useragent.source.includes("Nintendo WiiU"))
res.redirect("/lite?v=" + req.query.v); res.redirect("/lite?v=" + req.query.v);
if(!inv_vid.allowedRegions.includes("US") && !inv_vid.allowedRegions.includes("PL")) {
renderTemplate(res, req, "video-error.ejs", {
v,
err_reason:""
});
}
if (req.query.from === "short") var shortsui = true; if (req.query.from === "short") var shortsui = true;