更新 'clash.js'

This commit is contained in:
vpt 2023-01-10 15:58:47 +08:00
parent 605ff5a0bb
commit 48a0c43182

View File

@ -32,7 +32,11 @@ async function configPrependRules(utils, obj) {
// 获取代理组的名称
function getProxyGroupName(obj) {
return obj['proxy-groups'].find(item => item.name.includes('节点选择')).name
const nodeSelectName = obj['proxy-groups'].find(item => item.name.includes('节点选择'))
if (nodeSelectName) {
return nodeSelectName.name
}
return obj['proxy-groups'].find(item => item.name.includes('手动切换')).name
}
// 获取直连组的名称