diff --git a/Mac/AppDelegate.swift b/Mac/AppDelegate.swift index 6ca391b06..a85e15235 100644 --- a/Mac/AppDelegate.swift +++ b/Mac/AppDelegate.swift @@ -149,10 +149,9 @@ import Sparkle CacheCleaner.purgeIfNecessary() - FaviconDownloader.shared.delegate = self - FeedIconDownloader.shared.delegate = self + initializeDownloaders() } - + func applicationDidFinishLaunching(_ note: Notification) { #if MAC_APP_STORE || TEST diff --git a/Shared/AppDelegate+Shared.swift b/Shared/AppDelegate+Shared.swift index c1cef6125..8a059fb9a 100644 --- a/Shared/AppDelegate+Shared.swift +++ b/Shared/AppDelegate+Shared.swift @@ -20,4 +20,10 @@ extension AppDelegate: FaviconDownloaderDelegate, FeedIconDownloaderDelegate { await HTMLMetadataDownloader.downloadMetadata(for: url) } + + func initializeDownloaders() { + + FaviconDownloader.shared.delegate = self + FeedIconDownloader.shared.delegate = self + } }