Skip to content

Commit

Permalink
add support for opening Google Chrome under windows
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosteybe committed Dec 17, 2014
1 parent 471107c commit 755778d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ var compareReportURL = 'http://localhost:3001/compare/';

var activeCaptureConfigPath = '';

var isWin = /^win/.test(process.platform);



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

var options = {
url: compareReportURL
,app: "Google Chrome"
,app: isWin ? "chrome" : "Google Chrome"
};

gulp.src(compareConfigFileName)
Expand Down

0 comments on commit 755778d

Please sign in to comment.