mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-22 01:35:32 +08:00
chore: 改进禁用判断逻辑
This commit is contained in:
@@ -18,7 +18,9 @@ const diabledAppIds = [
|
|||||||
// 如果应用规则已有开屏广告一类的规则, 则在全局规则禁用此应用
|
// 如果应用规则已有开屏广告一类的规则, 则在全局规则禁用此应用
|
||||||
diabledAppIds.push(
|
diabledAppIds.push(
|
||||||
...apps
|
...apps
|
||||||
.filter((a) => a.groups.some((g) => g.name.startsWith('开屏广告')))
|
.filter((a) =>
|
||||||
|
a.groups.some((g) => g.name.startsWith('开屏广告') && g.enable !== false),
|
||||||
|
)
|
||||||
.map((a) => a.id),
|
.map((a) => a.id),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user