file_type.service: allow apng images to be rendered
Signed-off-by: Yonle <yonle@lecturify.net>
このコミットが含まれているのは:
コミット
fb4d43ced2
|
@ -26,7 +26,7 @@ export const fileType = mimetype => {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const fileTypeExt = url => {
|
export const fileTypeExt = url => {
|
||||||
if (url.match(/\.(png|jpe?g|gif|webp|avif)$/)) {
|
if (url.match(/\.(a?png|jpe?g|gif|webp|avif)$/)) {
|
||||||
return 'image'
|
return 'image'
|
||||||
}
|
}
|
||||||
if (url.match(/\.(ogv|mp4|webm|mov)$/)) {
|
if (url.match(/\.(ogv|mp4|webm|mov)$/)) {
|
||||||
|
|
読み込み中…
新しいイシューから参照