add setting actions in content
This commit is contained in:
parent
7639e99b75
commit
c6eb5553d0
10 changed files with 74 additions and 25 deletions
|
@ -1,7 +1,7 @@
|
|||
import InputComponent from './input';
|
||||
import KeymapperComponent from './keymapper';
|
||||
import FollowComponent from './follow';
|
||||
import * as inputActions from 'content/actions/input';
|
||||
import * as settingActions from 'content/actions/setting';
|
||||
import messages from 'shared/messages';
|
||||
|
||||
export default class Common {
|
||||
|
@ -40,7 +40,7 @@ export default class Common {
|
|||
browser.runtime.sendMessage({
|
||||
type: messages.SETTINGS_QUERY,
|
||||
}).then((settings) => {
|
||||
this.store.dispatch(inputActions.setKeymaps(settings.keymaps));
|
||||
this.store.dispatch(settingActions.set(settings));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue