chore: 改进禁用判断逻辑

This commit is contained in:
lisonge
2023-12-28 21:17:25 +08:00
parent 7edc02931d
commit 6468f1e32a

View File

@@ -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),
); );