2019-04-30 14:54:06 +00:00
|
|
|
DIR-3716
|
2019-04-29 13:49:56 +00:00
|
|
|
========================
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
const pageUrl = url.parse(await this.page.url());
|
|
|
|
|
|
|
|
|
|
|
|
if (pageUrl.href === 'chrome-error://chromewebdata/') {
|
|
|
|
logger.warn('Directed to: chrome-error://chromewebdata/');
|
|
|
|
this.emit('recover');
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// clear out stock recover handler
|
|
|
|
|
|
|
|
this.removeAllListeners('recover');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|