Skip to content

Commit

Permalink
fix browser colors (#367)
Browse files Browse the repository at this point in the history
Fixes #366.
  • Loading branch information
TooTallNate authored and thebigredgeek committed Dec 14, 2016
1 parent a5bbe13 commit 5783966
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ function formatArgs(args) {
+ (useColors ? '%c ' : ' ')
+ '+' + exports.humanize(this.diff);

if (!useColors) return args;
if (!useColors) return;

var c = 'color: ' + this.color;
args = [args[0], c, 'color: inherit'].concat(Array.prototype.slice.call(args, 1));
args.splice(1, 0, c, 'color: inherit')

// the final "%c" is somewhat tricky, because there could be other
// arguments passed either before or after the %c, so we need to
Expand Down

0 comments on commit 5783966

Please sign in to comment.