Skip to content

Commit 5379c90

Browse files
committed
Find favicon in f.start.me
1 parent 9d011bb commit 5379c90

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

generator.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ func (ws *WebStackGenerator) Run(cfg *Config) {
3535

3636
// icon return favicon of url
3737
func icon(rawurl string) string {
38-
duck := "https://icons.duckduckgo.com/ip3/%s.ico"
38+
base := "https://f.start.me/%s"
3939
rawurl = strings.TrimSpace(rawurl)
4040
u, err := url.Parse(rawurl)
4141
if err != nil {
42-
return fmt.Sprintf(duck, "")
42+
return fmt.Sprintf(base, "o.oo")
4343
}
4444
host := u.Host
4545
if strings.Contains(host, ":") {
4646
host, _, _ = net.SplitHostPort(host)
4747
}
48-
return fmt.Sprintf(duck, host)
48+
return fmt.Sprintf(base, host)
4949
}

0 commit comments

Comments
 (0)