Fallback when no proper data type is found, Teto favicon

This commit is contained in:
bingus_violet 2025-04-07 23:43:28 -05:00
parent aea31f2ea1
commit 65dde5eb7f
3 changed files with 4 additions and 0 deletions

View file

@ -507,6 +507,8 @@ module.exports = {
data = new cssMinifier().minify(data).styles
} else if (filePath.includes(".js")) {
data = javascriptCache[filePath]
} else {
data = fs.readFileSync(filePath)
}
res.send(data)