We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acb21b5 commit ae0bd28Copy full SHA for ae0bd28
1 file changed
packages/react-devtools-shared/src/hook.js
@@ -301,10 +301,7 @@ export function installHook(target: any): DevToolsHook | null {
301
const listeners = {};
302
const renderers = new Map();
303
304
- let hook: DevToolsHook;
305
- if (canAccessParentWindow(target) && !isMainWindow(target)) {
306
- hook = getMainWindow(target).__REACT_DEVTOOLS_GLOBAL_HOOK__;
307
- }
+ let hook: DevToolsHook = getMainWindow(target).__REACT_DEVTOOLS_GLOBAL_HOOK__;
308
if (!hook) {
309
hook = {
310
rendererInterfaces,
0 commit comments