mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-16 11:42:19 +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…
Reference in New Issue
Block a user