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",
|
"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",
|
||||||
|
|
|
@ -10,7 +10,7 @@ chromiumPath:
|
||||||
puppeteerWS:
|
puppeteerWS:
|
||||||
|
|
||||||
# headless
|
# headless
|
||||||
headless: "new"
|
headless: 'new'
|
||||||
|
|
||||||
# puppeteer启动args,注意args的--前缀
|
# puppeteer启动args,注意args的--前缀
|
||||||
args:
|
args:
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue