diff --git a/src/libpoketube/init/pages-static.js b/src/libpoketube/init/pages-static.js index 9c6aa0cf..fdc1df25 100644 --- a/src/libpoketube/init/pages-static.js +++ b/src/libpoketube/init/pages-static.js @@ -29,6 +29,7 @@ const notice = module.exports = function (app, config, renderTemplate) { var html_location = "./css/"; + var location_pwa = "./pwa/"; app.get("/privacy", function (req, res) { if (req.hostname == "poketube.fun") { @@ -82,6 +83,11 @@ module.exports = function (app, config, renderTemplate) { renderTemplate(res, req, "content-settings.ejs"); }); + app.get("/manifest.json", function (req, res) { + res.sendFile("manifest.json", { root: location_pwa }); + }); + + app.get("/customize", function (req, res) { const tab = req.query.tab;