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
linshunghuang authored and Brian Vaughn committed Sep 30, 2019
1 parent ac8e8b3 commit 6a3de7a
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 6a3de7a

Please sign in to comment.