aboutsummaryrefslogtreecommitdiff
path: root/src/content/index.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-10-09 14:30:58 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-10-09 14:30:58 +0900
commit355c0c64575adad4886647a1df3da173598b558b (patch)
tree0a2570a23736f2a818176ea73452b0547df60e6d /src/content/index.js
parent892eb8a6a6d9080213f461f19a8b8435a6482237 (diff)
save keymap in input store in content
Diffstat (limited to 'src/content/index.js')
-rw-r--r--src/content/index.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/content/index.js b/src/content/index.js
index 63bbf77..1ed8463 100644
--- a/src/content/index.js
+++ b/src/content/index.js
@@ -1,6 +1,6 @@
import './console-frame.scss';
import * as consoleFrames from './console-frames';
-import * as settingActions from 'settings/actions/setting';
+import * as inputActions from './actions/input';
import { createStore } from 'shared/store';
import ContentInputComponent from 'content/components/content-input';
import KeymapperComponent from 'content/components/keymapper';
@@ -34,7 +34,8 @@ const reloadSettings = () => {
return browser.runtime.sendMessage({
type: messages.SETTINGS_QUERY,
}).then((settings) => {
- store.dispatch(settingActions.set(settings));
+ let keymaps = JSON.parse(settings.json).keymaps;
+ store.dispatch(inputActions.setKeymaps(keymaps));
});
};