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