Skip to content

Commit

Permalink
πŸ”€ Merge pull request #926 from dkyeremeh/subdomain-favicon
Browse files Browse the repository at this point in the history
Allow favicons for subdomains
  • Loading branch information
Lissy93 authored Oct 30, 2022
2 parents 0eca672 + fe6989c commit e8b30b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/LinkItems/ItemIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export default {
/* For a given URL, return the hostname only. Used for favicon and generative icons */
getHostName(url) {
try {
return new URL(url).hostname.split('.').slice(-2).join('.');
return new URL(url).hostname;
} catch (e) {
ErrorHandler('Unable to format URL');
return url;
Expand Down

0 comments on commit e8b30b9

Please sign in to comment.