diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-07 14:14:02 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-07 15:13:54 +0900 |
commit | a6b197ca73a6be50c5c5bf391391c9971ff8c5e2 (patch) | |
tree | 02c1d1493baac8047950c39812a8152ae8add7e1 /src/content/index.js | |
parent | d995ab0030522f380d165f309ffc72b582366ddb (diff) |
reload settings on content
Diffstat (limited to 'src/content/index.js')
-rw-r--r-- | src/content/index.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/content/index.js b/src/content/index.js index b29118d..cd1a0af 100644 --- a/src/content/index.js +++ b/src/content/index.js @@ -2,6 +2,7 @@ import './console-frame.scss'; import * as consoleFrames from './console-frames'; import * as scrolls from 'content/scrolls'; import * as navigates from 'content/navigates'; +import * as settingActions from 'actions/setting'; import * as followActions from 'actions/follow'; import { createStore } from 'store'; import ContentInputComponent from 'components/content-input'; @@ -64,6 +65,9 @@ browser.runtime.onMessage.addListener((action) => { case messages.CONTENT_OPERATION: execOperation(action.operation); return Promise.resolve(); + case messages.CONTENT_SET_SETTINGS: + store.dispatch(settingActions.set(action.settings)); + return Promise.resolve(); default: return Promise.resolve(); } |