We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea18b2e commit c1089deCopy full SHA for c1089de
lib/MagicPen.js
@@ -43,7 +43,7 @@ function MagicPen(options) {
43
}
44
45
46
-if (typeof exports === 'object' && typeof exports.nodeName !== 'string' && require('supports-color')) {
+if (typeof exports === 'object' && typeof exports.nodeName !== 'string' && require('supports-color').stdout) {
47
MagicPen.defaultFormat = 'ansi'; // colored console
48
} else if (typeof window !== 'undefined' && typeof window.navigator !== 'undefined') {
49
if (window._phantom || window.mochaPhantomJS || (window.__karma__ && window.__karma__.config.captureConsole)) {
0 commit comments