Skip to content

Commit

Permalink
Skip push injections if Ghostery is paused. (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-classen authored Oct 25, 2023
1 parent 8b92357 commit bf63f54
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/adblocker/sources/adblocker.es
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,13 @@ export default class Adblocker {
) {
return skip('locally whitelisted');
}
if (this.whitelistChecks.length !== 0) {
for (let i = 0; i < this.whitelistChecks.length; i += 1) {
if (this.whitelistChecks[i]({ onlyCheckPause: true }) === true) {
return skip('paused');
}
}
}

// Skip sites that the user marked as "trusted".
if (this.trustedSites.has(urlParts.hostname)) {
Expand Down

0 comments on commit bf63f54

Please sign in to comment.