From b5f41d61f29a87de78b7740757ad0a585939a51a Mon Sep 17 00:00:00 2001 From: Ashley Date: Thu, 23 Feb 2023 15:58:19 +0000 Subject: [PATCH] add custom js :3 --- src/libpoketube/init/pages-static.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/libpoketube/init/pages-static.js b/src/libpoketube/init/pages-static.js index d2d65607..aaab21ab 100644 --- a/src/libpoketube/init/pages-static.js +++ b/src/libpoketube/init/pages-static.js @@ -54,8 +54,12 @@ module.exports = function (app, config, renderTemplate) { renderTemplate(res, req, "want-you-gone.ejs"); }); - app.get("/custom-theme", function (req, res) { - renderTemplate(res, req, "custom-css.ejs"); + app.get("/customize", function (req, res) { + const tab = req.query.tab; + + renderTemplate(res, req, "custom-css.ejs", { + tab, + }); }); app.get("/css/:id", (req, res) => {