Skip to content

Commit

Permalink
fix(adblocker): match logic between onHeadersReceived and onBeforeReq…
Browse files Browse the repository at this point in the history
…uest
  • Loading branch information
smalluban committed Nov 3, 2024
1 parent 56a34f6 commit 27ff437
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/background/adblocker.js
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,8 @@ if (__PLATFORM__ === 'firefox') {

chrome.webRequest.onHeadersReceived.addListener(
(details) => {
if (details.tabId < 0 || details.type === 'main_frame') return;

if (setup.pending) {
console.error('[adblocker] not ready for network modification');
return;
Expand Down

0 comments on commit 27ff437

Please sign in to comment.