add priv-custom :3

This commit is contained in:
Ashley 2023-02-20 15:44:30 +00:00
parent e4da73f6eb
commit e5789c4b67

View file

@ -24,7 +24,11 @@ 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" ) {
renderTemplate(res, req, "priv.ejs"); renderTemplate(res, req, "priv.ejs");
} else {
renderTemplate(res, req, "priv-custom.ejs");
}
}); });
app.get("/143", function (req, res) { app.get("/143", function (req, res) {