We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdc12ec commit 0591001Copy full SHA for 0591001
src/pretty-dom.js
@@ -47,7 +47,7 @@ function prettyDOM(dom, maxLength, options = {}) {
47
}
48
if (typeof maxLength !== 'number') {
49
maxLength =
50
- (typeof process !== 'undefined' && process.env.DEBUG_PRINT_LIMIT) || 7000
+ (typeof process !== 'undefined' && typeof process.env !== 'undefined' && process.env.DEBUG_PRINT_LIMIT) || 7000
51
52
53
if (maxLength === 0) {
0 commit comments