diff --git a/Sources/BraveWallet/Extensions/WebImageDownloaderExtensions.swift b/Sources/BraveWallet/Extensions/WebImageDownloaderExtensions.swift index a50e3d8e68f3..160489cc5142 100644 --- a/Sources/BraveWallet/Extensions/WebImageDownloaderExtensions.swift +++ b/Sources/BraveWallet/Extensions/WebImageDownloaderExtensions.swift @@ -8,6 +8,7 @@ import BraveUI extension BraveCore.WebImageDownloader: WebImageDownloaderType { @MainActor public func downloadImage(url: URL) async -> UIImage? { + guard url.isWebPage() else { return nil } return await withCheckedContinuation { continuation in downloadImage(url) { image, _, _ in continuation.resume(returning: image)