Support GIF and SVG favicons

This commit is contained in:
M66B 2020-07-06 15:46:10 +02:00
parent 1de4dee732
commit a995e12834
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {