diff --git a/src/libpoketube/init/pages-static.js b/src/libpoketube/init/pages-static.js index 98deadc8..2f1cd54e 100644 --- a/src/libpoketube/init/pages-static.js +++ b/src/libpoketube/init/pages-static.js @@ -197,11 +197,9 @@ module.exports = function (app, config, renderTemplate) { const minimizedCss = new CleanCSS().minify(css).styles; // Serve the minimized CSS file res.header("Content-Type", "text/css"); - res.send( - notice + - " " + - minimizedCss.replace("https://p.poketube.fun", config.p_url) - ); + res.send( + notice + " " + minimizedCss.replace(/https:\/\/p\.poketube\.fun\//g, config.p_url) +); } else { // Serve the original file res.sendFile(req.params.id, { root: html_location });