Нашёл ещё один вариант ссылки на новости Atom
This commit is contained in:
parent
06d93264a0
commit
673617690d
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ function getIconFromUrl(url: URL): string | undefined {
|
|||
const href = url.href;
|
||||
if (href.startsWith('mailto:'))
|
||||
return 'email';
|
||||
if (href.endsWith('/rss.xml') || href.endsWith('/atom.rss'))
|
||||
if (href.endsWith('/rss.xml') || href.endsWith('/atom.rss') || href.endsWith('.atom'))
|
||||
return 'rss';
|
||||
|
||||
const hostname = url.hostname;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue