changed favicon fetcher

This commit is contained in:
pandadev 2024-08-09 17:08:46 +02:00
parent 9dd8471492
commit 1e756f8e48
No known key found for this signature in database
GPG key ID: C39629DACB8E762F
4 changed files with 29 additions and 28 deletions

View file

@ -198,7 +198,7 @@ async fn save_image<R: Runtime>(app_handle: &AppHandle<R>, base64_image: &str) -
async fn fetch_favicon_as_base64(url: url::Url) -> Result<Option<String>, Box<dyn std::error::Error>> {
let client = reqwest::Client::new();
let favicon_url = format!("https://icon.horse/icon/{}", url.host_str().unwrap());
let favicon_url = format!("https://favicone.com/{}", url.host_str().unwrap());
let response = client.get(&favicon_url).send().await?;
if response.status().is_success() {