This commit is contained in:
May 2023-01-26 21:55:17 -08:00
parent fe65b5d0c3
commit 8f2f6d2778
2 changed files with 2 additions and 2 deletions

View file

@ -51,7 +51,7 @@
justify-content: center; justify-content: center;
} }
#btnContainer:hover { #btnContainer:hover {
border: 1px solid gray; outline: 1px solid gray;
} }
#dlbtn > p { #dlbtn > p {
color:black; color:black;

View file

@ -128,7 +128,7 @@ app.get("/download/:fileId",(req,res) => {
fs.readFile(__dirname+"/../pages/download.html",(err,buf) => { fs.readFile(__dirname+"/../pages/download.html",(err,buf) => {
if (err) {res.sendStatus(500);console.log(err);return} if (err) {res.sendStatus(500);console.log(err);return}
res.send(buf.toString().replace(/\$FileName/g,file.filename).replace(/\$FileId/g,req.params.fileId).replace(/\$Version/g,pkg.version)) res.send(buf.toString().replace(/\$FileId/g,req.params.fileId).replace(/\$Version/g,pkg.version).replace(/\$FileName/g,file.filename))
}) })
} else { } else {
ThrowError(res,404,"File not found.") ThrowError(res,404,"File not found.")