mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 17:57:52 +01:00
use regex :3
This commit is contained in:
parent
9e3eded0a0
commit
8ded687806
1 changed files with 3 additions and 5 deletions
|
@ -197,11 +197,9 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
const minimizedCss = new CleanCSS().minify(css).styles;
|
const minimizedCss = new CleanCSS().minify(css).styles;
|
||||||
// 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
|
||||||
res.sendFile(req.params.id, { root: html_location });
|
res.sendFile(req.params.id, { root: html_location });
|
||||||
|
|
Loading…
Reference in a new issue