fix:使用图片相关功能后,后台会有关不掉的窗口 (#268)
* Update config_default.yaml * Update puppeteer.js * fix:版本号
This commit is contained in:
parent
2ce72874d3
commit
990f932ce6
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "miao-yunzai",
|
||||
"version": "3.1.0",
|
||||
"version": "3.1.1",
|
||||
"author": "Yoimiya-Kokomi, Le-niao",
|
||||
"description": "QQ group Bot",
|
||||
"main": "app.js",
|
||||
|
|
|
@ -10,7 +10,7 @@ chromiumPath:
|
|||
puppeteerWS:
|
||||
|
||||
# headless
|
||||
headless: "new"
|
||||
headless: 'new'
|
||||
|
||||
# puppeteer启动args,注意args的--前缀
|
||||
args:
|
||||
|
|
|
@ -27,7 +27,7 @@ export default class Puppeteer extends Renderer {
|
|||
/** 截图次数 */
|
||||
this.renderNum = 0
|
||||
this.config = {
|
||||
headless: Data.def(config.headless, 'new'),
|
||||
headless: Data.def(config.headless, true),
|
||||
args: Data.def(config.args, [
|
||||
'--disable-gpu',
|
||||
'--disable-setuid-sandbox',
|
||||
|
|
Loading…
Reference in New Issue