feat: remove svg support
This commit is contained in:
parent
077aa4445a
commit
e8790a4d4c
@ -2,18 +2,12 @@
|
||||
export let type: string;
|
||||
export let isAbsolute = false;
|
||||
let githubRawIconUrl =
|
||||
'https://raw.githubusercontent.com/coollabsio/coolify-community-templates/main/services/icons';
|
||||
'https://raw.githubusercontent.com/tetrisiq/coolify-community-templates/main/services/icons';
|
||||
|
||||
let fallback = '/icons/default.png';
|
||||
let useFallback: boolean = false;
|
||||
|
||||
const handleError = (ev: { target: { src: string } }) => {
|
||||
if (useFallback) {
|
||||
ev.target.src = fallback;
|
||||
} else {
|
||||
ev.target.src = `${githubRawIconUrl}/${name}.svg`;
|
||||
useFallback = true;
|
||||
}
|
||||
ev.target.src = fallback;
|
||||
};
|
||||
|
||||
const name: any =
|
||||
|
Loading…
x
Reference in New Issue
Block a user