Fix issue previewing GIF files
This commit is contained in:
parent
cd2c94ccee
commit
1c48352432
3 changed files with 8 additions and 6 deletions
|
|
@ -15,6 +15,10 @@ fun String.isImageMimeType(): Boolean {
|
|||
return lowercase().startsWith("image")
|
||||
}
|
||||
|
||||
fun String.isGifMimeType(): Boolean {
|
||||
return lowercase().endsWith("gif")
|
||||
}
|
||||
|
||||
fun String.isVideoMimeType(): Boolean {
|
||||
return lowercase().startsWith("video")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue