Refactor background directories

This commit is contained in:
Shin'ya Ueoka 2018-05-06 11:45:07 +09:00
parent c5c08783d2
commit 98bc2326ee
9 changed files with 19 additions and 21 deletions

View file

@ -3,7 +3,7 @@ import * as commandActions from 'background/actions/command';
import * as settingActions from 'background/actions/setting';
import * as findActions from 'background/actions/find';
import * as tabActions from 'background/actions/tab';
import * as commands from 'shared/commands';
import * as completions from '../shared/completions';
export default class BackgroundComponent {
constructor(store) {
@ -44,7 +44,7 @@ export default class BackgroundComponent {
case messages.SETTINGS_QUERY:
return Promise.resolve(this.store.getState().setting.value);
case messages.CONSOLE_QUERY_COMPLETIONS:
return commands.complete(message.text, settings.value);
return completions.complete(message.text, settings.value);
case messages.SETTINGS_RELOAD:
this.store.dispatch(settingActions.load());
return this.broadcastSettingsChanged();