feat: use duckduckgo favicon api as fallback
This commit is contained in:
parent
9d4306c504
commit
6ab939f96b
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue