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)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 0 B

After

Width:  |  Height:  |  Size: 15 KiB

View file

@ -19,6 +19,8 @@
<title>Violet's Purgatory</title>
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<meta name="darkreader-lock">
<meta content="Violet's Purgatory" property="og:title" />