Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fix #2581: Custom favicons scaling problem. (#2582)
Browse files Browse the repository at this point in the history
  • Loading branch information
iccub authored May 26, 2020
1 parent 0dd7798 commit ac25e50
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Client/Extensions/UIImageViewExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ extension UIImageView {

if let url = url, let customIcon = FaviconFetcher.getCustomIcon(for: url) {
image = UIImage(contentsOfFile: customIcon.url.path)
self.contentMode = .scaleAspectFit
backgroundColor = customIcon.color
completionBlock?(customIcon.color, url)
return
Expand Down

0 comments on commit ac25e50

Please sign in to comment.