Skip to content

Commit 5783966

Browse files
TooTallNatethebigredgeek
authored andcommitted
fix browser colors (#367)
Fixes #366.
1 parent a5bbe13 commit 5783966

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

browser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ function formatArgs(args) {
7878
+ (useColors ? '%c ' : ' ')
7979
+ '+' + exports.humanize(this.diff);
8080

81-
if (!useColors) return args;
81+
if (!useColors) return;
8282

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

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

0 commit comments

Comments
 (0)