From 998d85bac98775a021ca85cc2f5cd44ac73159b1 Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Tue, 15 Jul 2014 15:41:03 -0700 Subject: [PATCH] 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. --- browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser.js b/browser.js index 62556a3..d6b17ee 100644 --- a/browser.js +++ b/browser.js @@ -72,7 +72,7 @@ function formatArgs() { if (!useColors) return args; var c = 'color: ' + this.color; - args = [args[0], c, ''].concat(Array.prototype.slice.call(args, 1)); + args = [args[0], c, 'color: inherit'].concat(Array.prototype.slice.call(args, 1)); // the final "%c" is somewhat tricky, because there could be other // arguments passed either before or after the %c, so we need to