File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
packages/react-devtools-shared/src Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -634,7 +634,7 @@ export function attach(
634634 const breakOnConsoleErrors =
635635 window . __REACT_DEVTOOLS_BREAK_ON_CONSOLE_ERRORS__ === true ;
636636 const showInlineWarningsAndErrors =
637- window . __REACT_DEVTOOLS_SHOW_INLINE_WARNINGS_AND_ERRORS__ === true ;
637+ window . __REACT_DEVTOOLS_SHOW_INLINE_WARNINGS_AND_ERRORS__ !== false ;
638638 if ( appendComponentStack || breakOnConsoleErrors ) {
639639 patchConsole ( {
640640 appendComponentStack,
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ export function installHook(target: any): DevToolsHook | null {
183183 const breakOnConsoleErrors =
184184 window . __REACT_DEVTOOLS_BREAK_ON_CONSOLE_ERRORS__ === true ;
185185 const showInlineWarningsAndErrors =
186- window . __REACT_DEVTOOLS_SHOW_INLINE_WARNINGS_AND_ERRORS__ === true ;
186+ window . __REACT_DEVTOOLS_SHOW_INLINE_WARNINGS_AND_ERRORS__ !== false ;
187187
188188 // The installHook() function is injected by being stringified in the browser,
189189 // so imports outside of this function do not get included.
You can’t perform that action at this time.
0 commit comments