Skip to content

Commit

Permalink
chore: use the default priority
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Dec 13, 2021
1 parent 5af6b74 commit eab51f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/goto/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const engine = PuppeteerBlocker.deserialize(

engine.on('request-blocked', ({ url }) => debugAdblock('block', url))
engine.on('request-redirected', ({ url }) => debugAdblock('redirect', url))
engine.setRequestInterceptionPriority(1)

const isEmpty = val => val == null || !(Object.keys(val) || val).length

Expand Down Expand Up @@ -175,7 +174,7 @@ module.exports = ({
return req.continue(req.continueRequestOverrides(), 0)
}
debug('abort', { url: req.url(), resourceType })
return req.abort('blockedbyclient', 2)
return req.abort('blockedbyclient', 0)
})
}

Expand Down

0 comments on commit eab51f3

Please sign in to comment.