Skip to content
Snippets Groups Projects
Commit 55f1c540 authored by ubermanu's avatar ubermanu
Browse files

bugfix: Allow preview of webp images in chatview

parent 85b3461c
No related branches found
No related tags found
2 merge requests!93File Upload,!90#87 Add HTTP headers to the file upload XHR (from origin slot)
......@@ -89890,7 +89890,7 @@ utils_core.isAudioURL = url => checkFileTypes(['.ogg', '.mp3', '.m4a'], url);
 
utils_core.isVideoURL = url => checkFileTypes(['.mp4', '.webm'], url);
 
utils_core.isURLWithImageExtension = url => checkFileTypes(['.jpg', '.jpeg', '.png', '.gif', '.bmp', '.tiff', '.svg'], url);
utils_core.isURLWithImageExtension = url => checkFileTypes(['.jpg', '.jpeg', '.png', '.gif', '.bmp', '.tiff', '.svg', '.webp'], url);
 
utils_core.isImageURL = url => {
const regex = core_api.settings.get('image_urls_regex');
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment