use regex :3

This commit is contained in:
Ashley //// 2024-03-10 11:51:48 +00:00
parent 9e3eded0a0
commit 8ded687806

View file

@ -198,9 +198,7 @@ module.exports = function (app, config, renderTemplate) {
// Serve the minimized CSS file // Serve the minimized CSS file
res.header("Content-Type", "text/css"); res.header("Content-Type", "text/css");
res.send( res.send(
notice + notice + " " + minimizedCss.replace(/https:\/\/p\.poketube\.fun\//g, config.p_url)
" " +
minimizedCss.replace("https://p.poketube.fun", config.p_url)
); );
} else { } else {
// Serve the original file // Serve the original file