mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 05:00:30 +08:00
support gif
This commit is contained in:
parent
fc0c34d974
commit
41d3b4fbba
@ -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 => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user