Skip to content

Commit

Permalink
fix: add setRequestInterception (jef#1312)
Browse files Browse the repository at this point in the history
Fixes jef#826
  • Loading branch information
xeaon authored and FabianRohr committed Dec 11, 2020
1 parent 916179a commit b6c6755
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/store/lookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ async function lookup(browser: Browser, store: Store) {
? await browser.createIncognitoBrowserContext()
: browser.defaultBrowserContext();
const page = await context.newPage();
await page.setRequestInterception(true);

page.setDefaultNavigationTimeout(config.page.timeout);
await page.setUserAgent(await getRandomUserAgent(browser));
Expand Down

0 comments on commit b6c6755

Please sign in to comment.