Epikcoder commited on
Commit
a05f12d
·
1 Parent(s): 9a38238

varo gendeng

Browse files
Files changed (1) hide show
  1. src/utils/request/PuppeteerSg.js +3 -2
src/utils/request/PuppeteerSg.js CHANGED
@@ -1,5 +1,5 @@
1
  import puppeteer from 'puppeteer'
2
-
3
  class PuppeteerSg {
4
  constructor() {
5
  if (!PuppeteerSg.instance) {
@@ -18,7 +18,8 @@ class PuppeteerSg {
18
  this.browser = await puppeteer.launch({
19
  headless: "new",
20
  defaultViewport: null,
21
- args: ["--no-sandbox"]
 
22
  });
23
  }
24
 
 
1
  import puppeteer from 'puppeteer'
2
+ import { executablePath } from 'puppeteer';
3
  class PuppeteerSg {
4
  constructor() {
5
  if (!PuppeteerSg.instance) {
 
18
  this.browser = await puppeteer.launch({
19
  headless: "new",
20
  defaultViewport: null,
21
+ args: ["--no-sandbox"],
22
+ executablePath: executablePath()
23
  });
24
  }
25