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 da75276 commit bcd3078Copy full SHA for bcd3078
packages/react-devtools-extensions/src/main.js
@@ -271,7 +271,7 @@ function createPanelIfReactLoaded() {
271
// When the user chooses a different node in the browser Elements tab,
272
// copy it over to the hook object so that we can sync the selection.
273
chrome.devtools.inspectedWindow.eval(
274
- '(window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$0 !== $0) ?' +
+ '(window.__REACT_DEVTOOLS_GLOBAL_HOOK__ && window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$0 !== $0) ?' +
275
'(window.__REACT_DEVTOOLS_GLOBAL_HOOK__.$0 = $0, true) :' +
276
'false',
277
(didSelectionChange, evalError) => {
0 commit comments