1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

add support for webp images (#858)

fixes #848
This commit is contained in:
Helmut K. C. Tessarek 2018-10-11 12:18:33 -04:00 committed by Laurent Cozic
parent 2d7065cde2
commit dbb269fef6

View File

@ -26,7 +26,7 @@ class Resource extends BaseItem {
}
static isSupportedImageMimeType(type) {
const imageMimeTypes = ["image/jpg", "image/jpeg", "image/png", "image/gif", "image/svg+xml"];
const imageMimeTypes = ["image/jpg", "image/jpeg", "image/png", "image/gif", "image/svg+xml", "image/webp"];
return imageMimeTypes.indexOf(type.toLowerCase()) >= 0;
}