Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Oct 19, 2021
1 parent fbbffa0 commit 4524583
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/goto/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ module.exports = ({
if (adblock) {
prePromises.push(
run({
fn: Promise.resolve(engine.setRequestInterceptionPriority(-1)).then(
fn: Promise.resolve(engine.setRequestInterceptionPriority(1)).then(
engine.enableBlockingInPage(page)
),
timeout: actionTimeout,
Expand Down Expand Up @@ -278,10 +278,10 @@ module.exports = ({
page.on('request', req => {
const resourceType = req.resourceType()
if (!abortTypes.includes(resourceType)) {
return req.continue(req.continueRequestOverrides(), 0)
return req.continue(req.continueRequestOverrides(), 2)
}
debug('abort', { url: req.url(), resourceType })
return req.abort('blockedbyclient', 0)
return req.abort('blockedbyclient', 2)
})
}

Expand Down

0 comments on commit 4524583

Please sign in to comment.