Browse Source

Merge pull request #690 from BlackDex/icon-download-http

Added http favicon url when response failed
pull/695/head
Daniel García 5 years ago
committed by GitHub
parent
commit
77b78f0991
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/api/icons.rs

1
src/api/icons.rs

@ -259,6 +259,7 @@ fn get_icon_url(domain: &str) -> Result<(Vec<Icon>, String), Error> {
} else { } else {
// Add the default favicon.ico to the list with just the given domain // Add the default favicon.ico to the list with just the given domain
iconlist.push(Icon::new(35, format!("{}/favicon.ico", ssldomain))); iconlist.push(Icon::new(35, format!("{}/favicon.ico", ssldomain)));
iconlist.push(Icon::new(35, format!("{}/favicon.ico", httpdomain)));
} }
// Sort the iconlist by priority // Sort the iconlist by priority

Loading…
Cancel
Save