Remove sender on dispatch

jh-changes
Shin'ya Ueoka 6 years ago
parent 84a9655bb3
commit 62d3c09f61
  1. 6
      src/background/components/background.js

@ -31,14 +31,12 @@ export default class BackgroundComponent {
let action = tabActions.openNewTab( let action = tabActions.openNewTab(
message.url, sender.tab.id, message.background, message.url, sender.tab.id, message.background,
settings.value.properties.adjacenttab); settings.value.properties.adjacenttab);
return this.store.dispatch(action, sender); return this.store.dispatch(action);
} }
return this.store.dispatch( return this.store.dispatch(tabActions.openToTab(message.url, sender.tab));
tabActions.openToTab(message.url, sender.tab), sender);
case messages.CONSOLE_ENTER_COMMAND: case messages.CONSOLE_ENTER_COMMAND:
this.store.dispatch( this.store.dispatch(
commandActions.exec(sender.tab, message.text, settings.value), commandActions.exec(sender.tab, message.text, settings.value),
sender
); );
return this.broadcastSettingsChanged(); return this.broadcastSettingsChanged();
case messages.SETTINGS_QUERY: case messages.SETTINGS_QUERY: