(subURL string)
| 1864 | } |
| 1865 | |
| 1866 | func 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 | |
| 1882 | func pickIconFromSubscriptionHTML(client *http.Client, subURL string, html string) string { |
| 1883 | html = strings.TrimSpace(html) |
no outgoing calls
no test coverage detected