(config)
| 286 | } |
| 287 | |
| 288 | _setConfig(config) { |
| 289 | this.options = this._validateConfig(config) |
| 290 | this.puppeteerOptions = { |
| 291 | headless: !this.options.show, |
| 292 | ...this._getOptions(config), |
| 293 | } |
| 294 | if (this.puppeteerOptions.headless) this.puppeteerOptions.headless = 'new' |
| 295 | this.isRemoteBrowser = !!this.puppeteerOptions.browserWSEndpoint |
| 296 | popupStore.defaultAction = this.options.defaultPopupAction |
| 297 | } |
| 298 | |
| 299 | static _config() { |
| 300 | return [ |
no test coverage detected