mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-26 23:24:38 +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];
|
||||
if (!faviconApi) {
|
||||
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.`;
|
||||
} else {
|
||||
return this.getFavicon(fullUrl, faviconApi);
|
||||
|
Loading…
x
Reference in New Issue
Block a user