提交 ca84cec0 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

disable some chrome unused features (#939)

上级 d97cd1f8
...@@ -101,7 +101,7 @@ ...@@ -101,7 +101,7 @@
"request": "^2.83", "request": "^2.83",
"retry-promise": "^1.0", "retry-promise": "^1.0",
"rx-queue": "^0.1", "rx-queue": "^0.1",
"rxjs": "^5.4", "rxjs": "^5.5",
"state-switch": "^0.2", "state-switch": "^0.2",
"watchdog": "^0.3", "watchdog": "^0.3",
"ws": "^3.2", "ws": "^3.2",
......
...@@ -111,8 +111,15 @@ export class Bridge extends EventEmitter { ...@@ -111,8 +111,15 @@ export class Bridge extends EventEmitter {
const browser = await launch({ const browser = await launch({
headless, headless,
args: [ args: [
'--audio-output-channels=0',
'--disable-default-apps',
'--disable-extensions',
'--disable-translate',
'--disable-gpu', '--disable-gpu',
'--disable-setuid-sandbox', '--disable-setuid-sandbox',
'--disable-sync',
'--hide-scrollbars',
'--mute-audio',
'--no-sandbox', '--no-sandbox',
], ],
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册