mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 21:20:29 +08:00
allow hidden for GLOBAL group
This commit is contained in:
parent
3449287e46
commit
2b1846d72c
@ -94,9 +94,11 @@ export const mihomoGroups = async (): Promise<IMihomoMixedGroup[]> => {
|
|||||||
})
|
})
|
||||||
if (!groups.find((group) => group.name === 'GLOBAL')) {
|
if (!groups.find((group) => group.name === 'GLOBAL')) {
|
||||||
const newGlobal = proxies.proxies['GLOBAL'] as IMihomoGroup
|
const newGlobal = proxies.proxies['GLOBAL'] as IMihomoGroup
|
||||||
|
if (!newGlobal.hidden) {
|
||||||
const newAll = newGlobal.all.map((name) => proxies.proxies[name])
|
const newAll = newGlobal.all.map((name) => proxies.proxies[name])
|
||||||
groups.push({ ...newGlobal, all: newAll })
|
groups.push({ ...newGlobal, all: newAll })
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return groups
|
return groups
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user