Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fix #8369: Disable content blockers when TP is disabled (#8370)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuba authored Nov 7, 2023
1 parent 5779206 commit e06b3f6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,10 @@ actor ContentBlockerManager {
return .generic(genericType)
}

guard domain.isShieldExpected(.AdblockAndTp, considerAllShieldsOption: true) else {
return Set(genericRuleLists)
}

// Get rule lists for filter lists
let filterLists = FilterListStorage.shared.filterLists
let additionalRuleLists = filterLists.compactMap { filterList -> BlocklistType? in
Expand Down

0 comments on commit e06b3f6

Please sign in to comment.