From b6559cbaf9839e5c92383aab760fe5b34becca92 Mon Sep 17 00:00:00 2001 From: pompurin404 Date: Tue, 24 Sep 2024 20:15:56 +0800 Subject: [PATCH] support gif --- src/renderer/src/pages/proxies.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/renderer/src/pages/proxies.tsx b/src/renderer/src/pages/proxies.tsx index f264c37..0b55c1f 100644 --- a/src/renderer/src/pages/proxies.tsx +++ b/src/renderer/src/pages/proxies.tsx @@ -221,6 +221,9 @@ const Proxies: React.FC = () => { size="sm" onLoad={() => { if (!groups[index].icon.startsWith('http')) return + if (localStorage.getItem(groups[index].icon)) return + // canvas 只支持静态图片 + if (groups[index].icon.endsWith('gif')) return const img = new Image() img.crossOrigin = 'anonymous' img.onload = (): void => {