Skip to content

Commit a6e9989

Browse files
author
David Huang
committed
[DevTools] postMessage target origin needs to be '*' for local files
1 parent 2a264a9 commit a6e9989

File tree

1 file changed

+1
-1
lines changed
  • packages/react-devtools-extensions/src

1 file changed

+1
-1
lines changed

packages/react-devtools-extensions/src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ function createPanelIfReactLoaded() {
135135
// Initialize the backend only once the Store has been initialized.
136136
// Otherwise the Store may miss important initial tree op codes.
137137
chrome.devtools.inspectedWindow.eval(
138-
`window.postMessage({ source: 'react-devtools-inject-backend' }, window.origin);`,
138+
`window.postMessage({ source: 'react-devtools-inject-backend' }, '*');`,
139139
function(response, evalError) {
140140
if (evalError) {
141141
console.error(evalError);

0 commit comments

Comments
 (0)