Merge pull request #1368 from Wevah/favicon-master-fix

Favicon master fix
This commit is contained in:
Maurice Parker 2019-11-27 16:32:44 -06:00 committed by GitHub
commit aebb33420e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -136,6 +136,7 @@ final class FaviconDownloader {
if (!hasIcons) {
self.homePageURLsWithNoFaviconURLCache.insert(url)
self.homePageURLsWithNoFaviconURLCacheDirty = true
}
}
@ -169,6 +170,7 @@ final class FaviconDownloader {
if let url = singleFaviconDownloader.homePageURL {
if self.homePageToFaviconURLCache[url] == nil {
self.homePageToFaviconURLCache[url] = singleFaviconDownloader.faviconURL
self.homePageToFaviconURLCacheDirty = true
}
}

View File

@ -85,8 +85,9 @@ private extension SingleFaviconDownloader {
if let image = image {
self.iconImage = IconImage(image)
self.postDidLoadFaviconNotification()
}
self.postDidLoadFaviconNotification()
}
}