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

add ismobile lol

This commit is contained in:
Ashley 2023-03-19 11:25:06 +00:00
parent 61909b7eba
commit 830a6abeba

View file

@ -24,8 +24,10 @@ module.exports = function (app, config, renderTemplate) {
var html_location = "./css/";
app.get("/privacy", function (req, res) {
if ( req.hostname == "poketube.fun" || req.hostname == "poketube.site" || req.hostname == "poketube.online" || req.hostname == "poketube.xyz" ) {
renderTemplate(res, req, "priv.ejs");
if ( req.hostname == "poketube.fun" ) {
renderTemplate(res, req, "priv.ejs", {
isMobile: req.useragent.isMobile,
});
} else {
renderTemplate(res, req, "priv-custom.ejs");
}