@samitouri / QOS-React-2 / commits / 6a3de7a414

[DevTools] postMessage target origin needs to be '*' for local files (#16953)

David Huang committed Sep 30, 2019 at 08:29 UTC 6a3de7a414b25ef3933a6f418a442ab720b8dcd5
1 file changed +1 -1
packages/react-devtools-extensions/src/main.js
+1 -1
@@ -135,7 +135,7 @@ function createPanelIfReactLoaded() {
135 // Initialize the backend only once the Store has been initialized.
136 // Otherwise the Store may miss important initial tree op codes.
137 chrome.devtools.inspectedWindow.eval(
138 - `window.postMessage({ source: 'react-devtools-inject-backend' }, window.origin);`,
138 + `window.postMessage({ source: 'react-devtools-inject-backend' }, '*');`,
139 function(response, evalError) {
140 if (evalError) {
141 console.error(evalError);