commit
fb41a3e157
|
@ -10,7 +10,7 @@ chromiumPath:
|
||||||
puppeteerWS:
|
puppeteerWS:
|
||||||
|
|
||||||
# headless
|
# headless
|
||||||
headless: 'new'
|
headless: "new"
|
||||||
|
|
||||||
# puppeteer启动args,注意args的--前缀
|
# puppeteer启动args,注意args的--前缀
|
||||||
args:
|
args:
|
||||||
|
|
|
@ -23,7 +23,7 @@ export default class PuppeteerRenderer {
|
||||||
/** 截图次数 */
|
/** 截图次数 */
|
||||||
this.renderNum = 0
|
this.renderNum = 0
|
||||||
this.config = {
|
this.config = {
|
||||||
headless: Data.def(config.headless, true),
|
headless: Data.def(config.headless, "new"),
|
||||||
args: Data.def(config.args, [
|
args: Data.def(config.args, [
|
||||||
'--disable-gpu',
|
'--disable-gpu',
|
||||||
'--disable-setuid-sandbox',
|
'--disable-setuid-sandbox',
|
||||||
|
|
Loading…
Reference in New Issue