更新 'clash.js'
This commit is contained in:
		
							
								
								
									
										6
									
								
								clash.js
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								clash.js
									
									
									
									
									
								
							@ -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
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// 获取直连组的名称
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user