!51 使用新无头模式

Merge pull request !51 from touchscale/master
This commit is contained in:
Kokomi 2023-05-29 19:50:33 +00:00 committed by Gitee
commit fb41a3e157
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ chromiumPath:
puppeteerWS:
# headless
headless: 'new'
headless: "new"
# puppeteer启动args注意args的--前缀
args:

View File

@ -23,7 +23,7 @@ export default class PuppeteerRenderer {
/** 截图次数 */
this.renderNum = 0
this.config = {
headless: Data.def(config.headless, true),
headless: Data.def(config.headless, "new"),
args: Data.def(config.args, [
'--disable-gpu',
'--disable-setuid-sandbox',