MCPcopy Create free account
hub / github.com/AandStep/ResultV / originIconFallbackURLs

Function originIconFallbackURLs

app.go:1866–1880  ·  view source on GitHub ↗
(subURL string)

Source from the content-addressed store, hash-verified

1864}
1865
1866func originIconFallbackURLs(subURL string) []string {
1867 parsed, err := url.Parse(subURL)
1868 if err != nil || parsed.Scheme == "" || parsed.Host == "" {
1869 return nil
1870 }
1871 base := parsed.Scheme + "://" + parsed.Host
1872 return []string{
1873 base + "/assets/apple-touch-icon-180x180.png",
1874 base + "/assets/favicon-32x32.png",
1875 base + "/assets/favicon.ico",
1876 base + "/apple-touch-icon.png",
1877 base + "/apple-touch-icon-precomposed.png",
1878 base + "/favicon.ico",
1879 }
1880}
1881
1882func pickIconFromSubscriptionHTML(client *http.Client, subURL string, html string) string {
1883 html = strings.TrimSpace(html)

Callers 1

resolveSubscriptionIconFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected