Merge pull request #1753 from thelounge/xpaw/webp
Detect image/webp as an image
This commit is contained in:
commit
39e99fcd29
@ -96,6 +96,7 @@ function parse(msg, preview, res, client) {
|
|||||||
case "image/gif":
|
case "image/gif":
|
||||||
case "image/jpg":
|
case "image/jpg":
|
||||||
case "image/jpeg":
|
case "image/jpeg":
|
||||||
|
case "image/webp":
|
||||||
if (res.size > (Helper.config.prefetchMaxImageSize * 1024)) {
|
if (res.size > (Helper.config.prefetchMaxImageSize * 1024)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user