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
Browse files Browse the repository at this point in the history
  • Loading branch information
cuba committed Nov 7, 2023
1 parent 11bb042 commit ed1b0c4
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 ed1b0c4

Please sign in to comment.