mirror of https://github.com/M66B/FairEmail.git
Support GIF and SVG favicons
This commit is contained in:
parent
1de4dee732
commit
a995e12834
|
@ -439,7 +439,7 @@ public class ContactInfo {
|
|||
|
||||
Document doc = JsoupEx.parse(response);
|
||||
|
||||
Element link = doc.head().select("link[href~=.*\\.(ico|png)]").first();
|
||||
Element link = doc.head().select("link[href~=.*\\.(ico|png|gif|svg)]").first();
|
||||
String favicon = (link == null ? null : link.attr("href"));
|
||||
|
||||
if (TextUtils.isEmpty(favicon)) {
|
||||
|
|
Loading…
Reference in New Issue