Skip to content

Commit 998d85b

Browse files
committed
browser: reset the "content" color via color: inherit
Necessary for Firefox v31, which seems to retain the previous color from a previous %c color formatter when an empty string is given.
1 parent 165e937 commit 998d85b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function formatArgs() {
7272
if (!useColors) return args;
7373

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

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

0 commit comments

Comments
 (0)