Skip to content

Commit

Permalink
[DevTools] postMessage target origin needs to be '*' for local files
Browse files Browse the repository at this point in the history
  • Loading branch information
David Huang committed Sep 29, 2019
1 parent 2a264a9 commit a6e9989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-devtools-extensions/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function createPanelIfReactLoaded() {
// Initialize the backend only once the Store has been initialized.
// Otherwise the Store may miss important initial tree op codes.
chrome.devtools.inspectedWindow.eval(
`window.postMessage({ source: 'react-devtools-inject-backend' }, window.origin);`,
`window.postMessage({ source: 'react-devtools-inject-backend' }, '*');`,
function(response, evalError) {
if (evalError) {
console.error(evalError);
Expand Down

0 comments on commit a6e9989

Please sign in to comment.