mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-20 00:35:17 +08:00
fix(全局规则): 开屏广告失效
This commit is contained in:
@@ -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.groups.filter((g: { name: string }) =>
|
(a) =>
|
||||||
g.name.startsWith(groupNamePrefix),
|
a.groups.filter((g: { name: string }) =>
|
||||||
),
|
g.name.startsWith(groupNamePrefix),
|
||||||
|
).length === 1,
|
||||||
)
|
)
|
||||||
.map((a) => a.id);
|
.map((a) => a.id);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user