Skip to content

Commit c7e4680

Browse files
committed
Fix dispatching actions from chrome devtools
Fix #98.
1 parent af02721 commit c7e4680

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/browser/extension/devpanel/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import DevTools from '../../../app/containers/DevTools';
77

88
const backgroundPageConnection = connect();
99

10-
function dispatch(action) {
10+
function dispatch(type, action) {
1111
chrome.devtools.inspectedWindow.eval(
1212
'window.postMessage({' +
13-
'type: \'DISPATCH\',' +
13+
'type: \'' + type + '\',' +
1414
'payload: ' + JSON.stringify(action) + ',' +
1515
'source: \'redux-cs\'' +
1616
'}, \'*\');',

0 commit comments

Comments
 (0)