mirror of
https://codeberg.org/ashley/poke
synced 2026-04-19 16:47:59 +00:00
use regex :3
This commit is contained in:
@@ -198,9 +198,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||
// Serve the minimized CSS file
|
||||
res.header("Content-Type", "text/css");
|
||||
res.send(
|
||||
notice +
|
||||
" " +
|
||||
minimizedCss.replace("https://p.poketube.fun", config.p_url)
|
||||
notice + " " + minimizedCss.replace(/https:\/\/p\.poketube\.fun\//g, config.p_url)
|
||||
);
|
||||
} else {
|
||||
// Serve the original file
|
||||
|
||||
Reference in New Issue
Block a user