更新 'clash.js'
This commit is contained in:
parent
605ff5a0bb
commit
48a0c43182
6
clash.js
6
clash.js
@ -32,7 +32,11 @@ async function configPrependRules(utils, obj) {
|
|||||||
|
|
||||||
// 获取代理组的名称
|
// 获取代理组的名称
|
||||||
function getProxyGroupName(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
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取直连组的名称
|
// 获取直连组的名称
|
||||||
|
Loading…
Reference in New Issue
Block a user