mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-15 09:20:32 +00:00
external icons will come from a mount point
This commit is contained in:
parent
6a234f9a47
commit
7a745ce27f
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue