fix:使用图片相关功能后,后台会有关不掉的窗口 (#268)

* Update config_default.yaml

* Update puppeteer.js

* fix:版本号
This commit is contained in:
枫叶 2023-10-09 02:41:00 +08:00 committed by GitHub
parent 2ce72874d3
commit 990f932ce6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "miao-yunzai", "name": "miao-yunzai",
"version": "3.1.0", "version": "3.1.1",
"author": "Yoimiya-Kokomi, Le-niao", "author": "Yoimiya-Kokomi, Le-niao",
"description": "QQ group Bot", "description": "QQ group Bot",
"main": "app.js", "main": "app.js",

View File

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

View File

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