Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
豆子 authored and 豆子 committed Dec 5, 2022
1 parent 8bed00a commit 3881b22
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion Love Browser/Extentions/String+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ extension String {
func appendedString() -> String {
// https://active-purple-earwig.faviconkit.com/
// https://www.google.com/s2/favicons?domain=&size=
let url = " https://active-purple-earwig.faviconkit.com/" + self + "/32"
let url = "https://active-purple-earwig.faviconkit.com/" + self + "/32"

return url

Expand Down
2 changes: 1 addition & 1 deletion Love Browser/Views/HomePageView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ struct HomePageView: View {
} else {


AsyncImage(url: URL(string: homePageCategory.icon ?? "https://www.google.com/favicon.ico")) { image in
AsyncImage(url: URL(string: homePageCategory.icon?.appendedString().addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) ?? "https://www.google.com/favicon.ico")) { image in

image
.resizable()
Expand Down

0 comments on commit 3881b22

Please sign in to comment.