mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
This commit is contained in:
parent
33599324d6
commit
580d2914e7
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user