fix(全局规则): 开屏广告失效

This commit is contained in:
AIsouler
2024-03-07 22:46:21 +08:00
parent 32833c0fc7
commit 3d65e7201e

View File

@@ -59,10 +59,11 @@ const diabledAppIds: string[] = [
// 如果应用规则已有全局规则中的某一类的规则, 则在对应全局规则禁用此应用 // 如果应用规则已有全局规则中的某一类的规则, 则在对应全局规则禁用此应用
function filterAppsByGroup(apps: any[], groupNamePrefix: string): string[] { function filterAppsByGroup(apps: any[], groupNamePrefix: string): string[] {
return apps return apps
.filter((a) => .filter(
(a) =>
a.groups.filter((g: { name: string }) => a.groups.filter((g: { name: string }) =>
g.name.startsWith(groupNamePrefix), g.name.startsWith(groupNamePrefix),
), ).length === 1,
) )
.map((a) => a.id); .map((a) => a.id);
} }