mirror of
git://jb55.com/damus
synced 2024-09-19 19:46:51 +00:00
WEBP
This commit is contained in:
parent
e6a5126494
commit
db763d07fe
@ -16,7 +16,7 @@ func isHttpsUrl(_ string: String) -> Bool {
|
||||
}
|
||||
|
||||
func isImage(_ urlString: String) -> Bool {
|
||||
let imageTypes = ["image/jpg", "image/jpeg", "image/png", "image/gif", "image/tiff", "image/bmp"]
|
||||
let imageTypes = ["image/jpg", "image/jpeg", "image/png", "image/gif", "image/tiff", "image/bmp", "image/webp"]
|
||||
|
||||
guard let url = URL(string: urlString) else {
|
||||
return false
|
||||
|
Loading…
Reference in New Issue
Block a user