Skip to content

Commit

Permalink
fix: add setRequestInterception (#1312)
Browse files Browse the repository at this point in the history
Fixes #826
  • Loading branch information
xeaon committed Dec 11, 2020
1 parent 27cfb94 commit a44621f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/store/lookup.ts
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 a44621f

Please sign in to comment.