Skip to content

Commit

Permalink
Fix dispatching actions from chrome devtools
Browse files Browse the repository at this point in the history
Fix #98.
  • Loading branch information
zalmoxisus committed Apr 24, 2016
1 parent af02721 commit c7e4680
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/browser/extension/devpanel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import DevTools from '../../../app/containers/DevTools';

const backgroundPageConnection = connect();

function dispatch(action) {
function dispatch(type, action) {
chrome.devtools.inspectedWindow.eval(
'window.postMessage({' +
'type: \'DISPATCH\',' +
'type: \'' + type + '\',' +
'payload: ' + JSON.stringify(action) + ',' +
'source: \'redux-cs\'' +
'}, \'*\');',
Expand Down

0 comments on commit c7e4680

Please sign in to comment.