external icons will come from a mount point

pull/34/head
Ben Phelps 2 years ago
parent 6a234f9a47
commit 7a745ce27f

@ -9,7 +9,7 @@ function resolveIcon(icon) {
if (icon.startsWith("http")) {
return `/api/proxy?url=${encodeURIComponent(icon)}`;
} else if (icon.startsWith("/")) {
return `/icons${icon}`;
return icon;
} else {
if (icon.endsWith(".png")) {
return `https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/${icon}`;

Loading…
Cancel
Save