mirror of
https://github.com/Lissy93/dashy.git
synced 2025-12-09 18:14:39 +01:00
🔀 Merge pull request #926 from dkyeremeh/subdomain-favicon
Allow favicons for subdomains
This commit is contained in:
commit
e8b30b9c25
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue