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

fix null bug

上级 c7598e51
......@@ -8,9 +8,6 @@
*
*/
import * as fs from 'fs'
// import * as co from 'co'
// import * as path from 'path'
// import * as util from 'util'
import { EventEmitter } from 'events'
import {
Builder
......@@ -179,14 +176,14 @@ class Browser extends EventEmitter {
const options = {
args: ['--no-sandbox'] // issue #26 for run inside docker
, binary: null
, binary: undefined
}
if (Config.isDocker) {
options.binary = Config.CMD_CHROMIUM
}
const customChrome = Capabilities.chrome()
.set('chromeOptions', options)
.set('chromeOptions', options)
return new Builder()
.setAlertBehavior('ignore')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册