Browse Source

Add Google S2 icon cache fallback for favicon fetching

pull/6881/head
Shocker 3 months ago
parent
commit
34536bde95
  1. 3
      src/api/icons.rs

3
src/api/icons.rs

@ -425,6 +425,9 @@ async fn get_icon_url(domain: &str) -> Result<IconUrlResult, Error> {
iconlist.push(Icon::new(40, format!("{httpdomain}/apple-touch-icon.png")));
}
// Add Google S2 icon cache fallback
iconlist.push(Icon::new(255, format!("https://www.google.com/s2/favicons?sz=32&domain={domain}")));
// Sort the iconlist by priority
iconlist.sort_by_key(|x| x.priority);

Loading…
Cancel
Save