mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-27 07:34:43 +02:00
⚡ Refactors and improves the icon component
This commit is contained in:
parent
f6686d99ad
commit
7851467397
@ -159,7 +159,7 @@ export default {
|
|||||||
const faviconApi = faviconIdentifier.split('favicon-')[1];
|
const faviconApi = faviconIdentifier.split('favicon-')[1];
|
||||||
if (!faviconApi) {
|
if (!faviconApi) {
|
||||||
errorMsg = 'Favicon API not specified';
|
errorMsg = 'Favicon API not specified';
|
||||||
} else if (!Object.keys(faviconApiEndpoints).includes(faviconApi)) {
|
} else if (!Object.keys(faviconApiEndpoints).includes(faviconApi) && faviconApi !== 'local') {
|
||||||
errorMsg = `The specified favicon API, '${faviconApi}' cannot be found.`;
|
errorMsg = `The specified favicon API, '${faviconApi}' cannot be found.`;
|
||||||
} else {
|
} else {
|
||||||
return this.getFavicon(fullUrl, faviconApi);
|
return this.getFavicon(fullUrl, faviconApi);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user