fix a thingy

This commit is contained in:
Ashley 2023-06-10 12:03:40 +00:00
parent 71c4d004fe
commit 27499decb3

View file

@ -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 });
} }