mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-10 15:28:47 +00:00
Remove pages/api/proxy.js as it was an open proxy
- The only location pages/api/proxy was used was for icon loading in item.jsx, simply returning the icon URL instead worked just fine. There was no need to proxy icon requests. fixes: #327
This commit is contained in:
parent
4503612bf0
commit
c3a623c329
3 changed files with 2 additions and 61 deletions
|
@ -10,7 +10,7 @@ import { SettingsContext } from "utils/contexts/settings";
|
|||
|
||||
function resolveIcon(icon) {
|
||||
if (icon.startsWith("http")) {
|
||||
return `/api/proxy?url=${encodeURIComponent(icon)}`;
|
||||
return icon;
|
||||
}
|
||||
|
||||
if (icon.startsWith("/")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue