forked from enlightenment/edi
provider: add fallback for text-based mimetypes.
Reviewers: ajwillia.ms Reviewed By: ajwillia.ms Differential Revision: https://phab.enlightenment.org/D4892
This commit is contained in:
parent
94a0923e29
commit
72c28938c6
|
@ -90,10 +90,14 @@ Edi_Content_Provider *edi_content_provider_for_mime_get(const char *mime)
|
|||
else
|
||||
{
|
||||
id = _edi_config_mime_search(mime);
|
||||
|
||||
if (!id)
|
||||
{
|
||||
if (!strncasecmp(mime, "text/", 5))
|
||||
id = "text";
|
||||
else
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
return edi_content_provider_for_id_get(id);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue