Nexchan commited on
Commit
349c03b
1 Parent(s): 73b0e34

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +3 -2
index.js CHANGED
@@ -70,10 +70,11 @@ app.get('/puppet', async (req, res) => {
70
  return res.status(400).send('URL query parameter is required');
71
  }
72
  try {
73
- const browser = await puppeteer.launch({
 
74
  headless: true,
75
  args: ['--no-sandbox', '--disable-setuid-sandbox']
76
- });
77
  const page = await browser.newPage();
78
  await page.setUserAgent(
79
  'Mozilla/5.0 (Linux; Android 10; SM-G965U Build/QP1A.190711.020; wv) ' +
 
70
  return res.status(400).send('URL query parameter is required');
71
  }
72
  try {
73
+ const browser = await puppeteer.launch();
74
+ /*({
75
  headless: true,
76
  args: ['--no-sandbox', '--disable-setuid-sandbox']
77
+ });*/
78
  const page = await browser.newPage();
79
  await page.setUserAgent(
80
  'Mozilla/5.0 (Linux; Android 10; SM-G965U Build/QP1A.190711.020; wv) ' +