mirror of
https://github.com/DIYgod/RSSHub-Radar.git
synced 2026-08-29 02:09:44 +08:00
feat: use duckduckgo favicon api as fallback
This commit is contained in:
+1
-1
@@ -14,7 +14,7 @@ export async function getPageRSS() {
|
||||
handleUrl(
|
||||
document.querySelector('link[rel~="icon"]').getAttribute("href"),
|
||||
)) ||
|
||||
location.origin + "/favicon.ico"
|
||||
`https://icons.duckduckgo.com/ip3/${location.hostname}.ico`
|
||||
|
||||
function handleUrl(url) {
|
||||
return new URL(
|
||||
|
||||
Reference in New Issue
Block a user