mirror of https://github.com/Lissy93/dashy.git
Allow favicons for subdomains
This commit is contained in:
parent
2ee9534b59
commit
fe6989cab4
|
@ -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 New Issue