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

Mobile,Desktop: Fixes #10914: Fix BMP image rendering in the Markdown viewer (#10915)

This commit is contained in:
Henry Heino 2024-08-22 13:53:44 -07:00 committed by GitHub
parent 33599324d6
commit 580d2914e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,6 +38,6 @@ export const resourceUrlToId = (url: string) => {
};
export const isSupportedImageMimeType = (type: string) => {
const imageMimeTypes = ['image/jpg', 'image/jpeg', 'image/png', 'image/gif', 'image/svg+xml', 'image/webp', 'image/avif'];
const imageMimeTypes = ['image/jpg', 'image/jpeg', 'image/png', 'image/gif', 'image/svg+xml', 'image/webp', 'image/avif', 'image/bmp'];
return imageMimeTypes.indexOf(type.toLowerCase()) >= 0;
};