mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 10:58:12 +01:00
fix a thingy
This commit is contained in:
parent
71c4d004fe
commit
27499decb3
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ app.get("/static/:id", (req, res) => {
|
||||||
const minimizedJs = require("uglify-js").minify(js).code;
|
const minimizedJs = require("uglify-js").minify(js).code;
|
||||||
// Serve the minimized JavaScript file
|
// Serve the minimized JavaScript file
|
||||||
res.header("Content-Type", "text/javascript");
|
res.header("Content-Type", "text/javascript");
|
||||||
res.send("// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-3.0-or-later" + " " + minimizedJs + " " + "// @license-end");
|
res.send("// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-3.0-or-later" + `\n` + minimizedJs + `\n` + "// @license-end");
|
||||||
} else {
|
} else {
|
||||||
res.sendFile(req.params.id, { root: html_location });
|
res.sendFile(req.params.id, { root: html_location });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue