mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-24 16:51:19 +01:00
Return the app icon earlier so we never hit the favicon cache
This commit is contained in:
parent
91908aa29a
commit
71bc1e5d8a
@ -108,11 +108,6 @@ final class FaviconDownloader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func favicon(with faviconURL: String, homePageURL: String?) -> IconImage? {
|
func favicon(with faviconURL: String, homePageURL: String?) -> IconImage? {
|
||||||
if let homePageURL = homePageURL, let url = URL(string: homePageURL) {
|
|
||||||
if url.host == "nnw.ranchero.com" {
|
|
||||||
return IconImage.appIcon
|
|
||||||
}
|
|
||||||
}
|
|
||||||
let downloader = faviconDownloader(withURL: faviconURL, homePageURL: homePageURL)
|
let downloader = faviconDownloader(withURL: faviconURL, homePageURL: homePageURL)
|
||||||
return downloader.iconImage
|
return downloader.iconImage
|
||||||
}
|
}
|
||||||
@ -120,6 +115,13 @@ final class FaviconDownloader {
|
|||||||
func favicon(withHomePageURL homePageURL: String) -> IconImage? {
|
func favicon(withHomePageURL homePageURL: String) -> IconImage? {
|
||||||
|
|
||||||
let url = homePageURL.rs_normalizedURL()
|
let url = homePageURL.rs_normalizedURL()
|
||||||
|
|
||||||
|
if let url = URL(string: homePageURL) {
|
||||||
|
if url.host == "nnw.ranchero.com" {
|
||||||
|
return IconImage.appIcon
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if homePageURLsWithNoFaviconURLCache.contains(url) {
|
if homePageURLsWithNoFaviconURLCache.contains(url) {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user