Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:zap: Refactors and improves the icon component

Alicia Sykes785146739736
diff --git a/src/components/LinkItems/ItemIcon.vue b/src/components/LinkItems/ItemIcon.vue
index 41786b8e..0cfa4872 100644
--- a/src/components/LinkItems/ItemIcon.vue
+++ b/src/components/LinkItems/ItemIcon.vue
@@ -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);