Skip to content

Commit c1089de

Browse files
committed
Fixed wrong use of supports-color
1 parent ea18b2e commit c1089de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/MagicPen.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function MagicPen(options) {
4343
}
4444
}
4545

46-
if (typeof exports === 'object' && typeof exports.nodeName !== 'string' && require('supports-color')) {
46+
if (typeof exports === 'object' && typeof exports.nodeName !== 'string' && require('supports-color').stdout) {
4747
MagicPen.defaultFormat = 'ansi'; // colored console
4848
} else if (typeof window !== 'undefined' && typeof window.navigator !== 'undefined') {
4949
if (window._phantom || window.mochaPhantomJS || (window.__karma__ && window.__karma__.config.captureConsole)) {

0 commit comments

Comments
 (0)