mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-23 00:57:47 +01:00
add ismobile lol
This commit is contained in:
parent
61909b7eba
commit
830a6abeba
1 changed files with 4 additions and 2 deletions
|
@ -24,8 +24,10 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
var html_location = "./css/";
|
var html_location = "./css/";
|
||||||
|
|
||||||
app.get("/privacy", function (req, res) {
|
app.get("/privacy", function (req, res) {
|
||||||
if ( req.hostname == "poketube.fun" || req.hostname == "poketube.site" || req.hostname == "poketube.online" || req.hostname == "poketube.xyz" ) {
|
if ( req.hostname == "poketube.fun" ) {
|
||||||
renderTemplate(res, req, "priv.ejs");
|
renderTemplate(res, req, "priv.ejs", {
|
||||||
|
isMobile: req.useragent.isMobile,
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
renderTemplate(res, req, "priv-custom.ejs");
|
renderTemplate(res, req, "priv-custom.ejs");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue