mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 07:18:26 +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/";
|
||||
|
||||
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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue