update renderers/puppeteer/lib/puppeteer.js.

Signed-off-by: touchscale <11134128+touchscale_admin@user.noreply.gitee.com>
This commit is contained in:
touchscale 2023-05-29 09:17:43 +00:00 committed by Gitee
parent 1837cb6b09
commit 593fcc22fe
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -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',