Skip to content

Commit f14b780

Browse files
committed
Merge pull request #13 from marcosteybe/master
add support for opening Google Chrome under windows
2 parents 471107c + 755778d commit f14b780

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gulpfile.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ var compareReportURL = 'http://localhost:3001/compare/';
2525

2626
var activeCaptureConfigPath = '';
2727

28+
var isWin = /^win/.test(process.platform);
29+
2830

2931

3032
if(!fs.existsSync(backstopConfigFileName)){
@@ -240,7 +242,7 @@ gulp.task("openReport", function(){
240242

241243
var options = {
242244
url: compareReportURL
243-
,app: "Google Chrome"
245+
,app: isWin ? "chrome" : "Google Chrome"
244246
};
245247

246248
gulp.src(compareConfigFileName)

0 commit comments

Comments
 (0)