Улучшил обработку ссылок на Steam
This commit is contained in:
parent
d319ee9528
commit
c52fb92c01
1 changed files with 4 additions and 1 deletions
|
|
@ -2,6 +2,7 @@
|
|||
const icons: Record<string, string> = {
|
||||
none: 'material-symbols:link',
|
||||
'steamcommunity.com': 'simple-icons:steam',
|
||||
'steampowered.com': 'simple-icons:steam',
|
||||
'twitter.com': 'simple-icons:x',
|
||||
'x.com': 'simple-icons:x',
|
||||
'github.com': 'simple-icons:github',
|
||||
|
|
@ -44,7 +45,9 @@ const specialResolvers: Record<string, (url: URL) => string> = {
|
|||
// Игнорируем имя пользователя
|
||||
'bsky.app': (url) => 'bsky.app',
|
||||
'bsky.social': (url) => 'bsky.social',
|
||||
'itch.io': (url) => 'itch.io'
|
||||
'itch.io': (url) => 'itch.io',
|
||||
'steamcommunity.com': (url) => 'steamcommunity.com',
|
||||
'steampowered.com': (url) => 'steampowered.com',
|
||||
}
|
||||
|
||||
function getIconFromUrl(url: URL): string | undefined {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue