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

move xvfb-chromium binary path to config

上级 f5f409fb
......@@ -8,7 +8,8 @@
"DEFAULT_PUPPET": "web",
"DEFAULT_PROFILE": "default-profile-name",
"DEFAULT_PORT": 18788,
"DEFAULT_PUPPET_PORT": 28788
"DEFAULT_PUPPET_PORT": 28788,
"BINARY_CHROMIUM": "/wechaty/bin/xvfb-chromium"
},
"scripts": {
"lint": "eslint src test || echo ok",
......
......@@ -108,8 +108,8 @@ class Browser extends EventEmitter {
const options = {
args: ['--no-sandbox'] // issue #26 for run inside docker
}
if (process.env.WECHATY_DOCKER) {
options.binary = '/wechaty/bin/xvfb-chromium'
if (Config.isDocker) {
options.binary = Config.BINARY_CHROMIUM
}
const customChrome = WebDriver.Capabilities.chrome()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册