From 27499decb346d0529499fde5e0a224da23a6c26d Mon Sep 17 00:00:00 2001 From: Ashley Date: Sat, 10 Jun 2023 12:03:40 +0000 Subject: [PATCH] fix a thingy --- src/libpoketube/init/pages-static.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libpoketube/init/pages-static.js b/src/libpoketube/init/pages-static.js index a9623a08..d20305c7 100644 --- a/src/libpoketube/init/pages-static.js +++ b/src/libpoketube/init/pages-static.js @@ -110,7 +110,7 @@ app.get("/static/:id", (req, res) => { const minimizedJs = require("uglify-js").minify(js).code; // Serve the minimized JavaScript file 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 { res.sendFile(req.params.id, { root: html_location }); }