Browse Source

fix(icon): use `rel=apple-touch-icon` instead of `rel=apple-touch-icon-precomposed.png`

https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html
Julien Voisin 11 tháng trước cách đây
mục cha
commit
6c60d61f36
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      internal/reader/icon/finder.go

+ 1 - 1
internal/reader/icon/finder.go

@@ -255,7 +255,7 @@ func findIconURLsFromHTMLDocument(body io.Reader, contentType string) ([]string,
 		"link[rel='icon' i][href]",
 		"link[rel='icon' i][href]",
 		"link[rel='shortcut icon' i][href]",
 		"link[rel='shortcut icon' i][href]",
 		"link[rel='icon shortcut' i][href]",
 		"link[rel='icon shortcut' i][href]",
-		"link[rel='apple-touch-icon-precomposed.png'][href]",
+		"link[rel='apple-touch-icon'][href]",
 	}
 	}
 
 
 	var iconURLs []string
 	var iconURLs []string