Skip to content

Commit ae0bd28

Browse files
committed
delete unused function
1 parent acb21b5 commit ae0bd28

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

  • packages/react-devtools-shared/src

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,7 @@ export function installHook(target: any): DevToolsHook | null {
301301
const listeners = {};
302302
const renderers = new Map();
303303

304-
let hook: DevToolsHook;
305-
if (canAccessParentWindow(target) && !isMainWindow(target)) {
306-
hook = getMainWindow(target).__REACT_DEVTOOLS_GLOBAL_HOOK__;
307-
}
304+
let hook: DevToolsHook = getMainWindow(target).__REACT_DEVTOOLS_GLOBAL_HOOK__;
308305
if (!hook) {
309306
hook = {
310307
rendererInterfaces,

0 commit comments

Comments
 (0)