vikarshana commited on
Commit
c7cbda4
·
verified ·
1 Parent(s): d4b2020

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
index.js CHANGED
@@ -121,7 +121,7 @@ app.get('/bypass', async (req, res) => {
121
  bypassCSP: true
122
  });
123
 
124
- const page = await context.newPage();
125
  await page.goto(url, { waitUntil: 'load', timeout: 60000 });
126
  await page.setUserAgent('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36');
127
  html = await page.content();
 
121
  bypassCSP: true
122
  });
123
 
124
+ const page = await browser.newPage(); // Create a new page
125
  await page.goto(url, { waitUntil: 'load', timeout: 60000 });
126
  await page.setUserAgent('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36');
127
  html = await page.content();