mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 14:14:52 +00:00
feat: remove svg support
This commit is contained in:
1 parent
077aa4445a
commit
e8790a4d4c
1 file changed
+2
-8
@@ -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 =
|
||||
|
||||
Reference in new issue
Block a user