Блоги #1
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ function getIconFromUrl(url: URL): string | undefined {
|
||||||
const href = url.href;
|
const href = url.href;
|
||||||
if (href.startsWith('mailto:'))
|
if (href.startsWith('mailto:'))
|
||||||
return 'email';
|
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';
|
return 'rss';
|
||||||
|
|
||||||
const hostname = url.hostname;
|
const hostname = url.hostname;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue