mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-04 22:43:40 +01:00
external icons will come from a mount point
This commit is contained in:
parent
6a234f9a47
commit
7a745ce27f
@ -9,7 +9,7 @@ function resolveIcon(icon) {
|
|||||||
if (icon.startsWith("http")) {
|
if (icon.startsWith("http")) {
|
||||||
return `/api/proxy?url=${encodeURIComponent(icon)}`;
|
return `/api/proxy?url=${encodeURIComponent(icon)}`;
|
||||||
} else if (icon.startsWith("/")) {
|
} else if (icon.startsWith("/")) {
|
||||||
return `/icons${icon}`;
|
return icon;
|
||||||
} else {
|
} else {
|
||||||
if (icon.endsWith(".png")) {
|
if (icon.endsWith(".png")) {
|
||||||
return `https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/${icon}`;
|
return `https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/${icon}`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user