Skip to content
Permalink
Browse files

fix(release-check): bypass win32 puppeteer error on 0.0.0.0

  • Loading branch information...
3cp committed Jun 20, 2019
1 parent 19f6547 commit bcbe2624f93bab807b8d97bf8f2fb2c06db38849
@@ -7,7 +7,8 @@ module.exports = class CheckJavascriptErrors extends Task {
constructor(url) {
super('Check javascript errors');

this.url = url;
// somehow puppeteer/win32 thinks http://0.0.0.0:5000 is an invalid address.
this.url = url.replace('//0.0.0.0', '//localhost');
}

execute() {
@@ -7,7 +7,8 @@ module.exports = class TakeScreenShotOfPage extends Task {
constructor(url, path) {
super('Take screenshot of page');

this.url = url;
// somehow puppeteer/win32 thinks http://0.0.0.0:5000 is an invalid address.
this.url = url.replace('//0.0.0.0', '//localhost');
this.path = path;
}

0 comments on commit bcbe262

Please sign in to comment.
You can’t perform that action at this time.