Skip to content

Commit 384936b

Browse files
author
Brian Vaughn
committed
Default inline errors/warnings to on in the backend
1 parent 24a2098 commit 384936b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-devtools-shared/src/backend/renderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

packages/react-devtools-shared/src/hook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)