Skip to content

Commit

Permalink
fix: If no browsers are defined then pass nothing to karma.
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Mar 14, 2014
1 parent 35f4ea8 commit 7edc7db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tasks/grunt-karma.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ module.exports = function(grunt) {
var data = _.merge(opts, this.data);

// But override the browsers array.
data.browsers = this.data.browsers || data.browsers;
if (data.browsers && this.data.browsers) {
data.browsers = this.data.browsers;
}

// Merge client.args
if (this.data.client && _.isArray(this.data.client.args)) {
Expand Down

0 comments on commit 7edc7db

Please sign in to comment.