Skip to content

Commit b997d07

Browse files
more-shubhamCopilot
andcommitted
Update packages/react-dom/src/client/ReactDOMClientFB.js
Co-authored-by: Copilot <[email protected]>
1 parent 839a15e commit b997d07

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/react-dom/src/client/ReactDOMClientFB.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ if (__DEV__) {
154154
!foundDevTools &&
155155
canUseDOM &&
156156
window.top === window.self &&
157+
// Allow suppressing this message via __REACT_DEVTOOLS_HIDE_CONSOLE__ in
158+
// environments like CEP or nwjs where the DevTools extension cannot be installed.
157159
typeof __REACT_DEVTOOLS_HIDE_CONSOLE__ === 'undefined'
158160
) {
159161
// If we're in Chrome or Firefox, provide a download link if not installed.

0 commit comments

Comments
 (0)