diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-07-19 21:46:52 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-07-19 21:46:52 +0900 |
commit | 62d3c09f61d39da3d7ecd9361dcfd9825fb6023f (patch) | |
tree | 0c1b2fe15feddb3803ec1ae14720982ffda982b9 /src/background | |
parent | 84a9655bb39e5902b417e124a0eb23d80808a6a7 (diff) |
Remove sender on dispatch
Diffstat (limited to 'src/background')
-rw-r--r-- | src/background/components/background.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/background/components/background.js b/src/background/components/background.js index c7a79a1..f7b0511 100644 --- a/src/background/components/background.js +++ b/src/background/components/background.js @@ -31,14 +31,12 @@ export default class BackgroundComponent { let action = tabActions.openNewTab( message.url, sender.tab.id, message.background, settings.value.properties.adjacenttab); - return this.store.dispatch(action, sender); + return this.store.dispatch(action); } - return this.store.dispatch( - tabActions.openToTab(message.url, sender.tab), sender); + return this.store.dispatch(tabActions.openToTab(message.url, sender.tab)); case messages.CONSOLE_ENTER_COMMAND: this.store.dispatch( commandActions.exec(sender.tab, message.text, settings.value), - sender ); return this.broadcastSettingsChanged(); case messages.SETTINGS_QUERY: |