Skip to content

Commit

Permalink
Unblock dispatch arguments (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeny-dementev authored and jhen0409 committed Jun 30, 2018
1 parent ff39eb3 commit 4ccdfe3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/browser/extension/inject/pageScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,8 @@ const preEnhancer = instanceId => next =>

return {
...store,
dispatch: (action) => (
window.__REDUX_DEVTOOLS_EXTENSION_LOCKED__ ? action : store.dispatch(action)
dispatch: (...args) => (
window.__REDUX_DEVTOOLS_EXTENSION_LOCKED__ && store.dispatch(...args)
)
};
};
Expand Down

0 comments on commit 4ccdfe3

Please sign in to comment.