diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-09 15:30:05 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-10-09 15:30:05 +0900 |
commit | c913dcdec775094daa9a64fa40034b3122320660 (patch) | |
tree | 978f2ad2581bc069e9369b28fe743b91c09f18a3 /src/content/index.js | |
parent | 355c0c64575adad4886647a1df3da173598b558b (diff) |
parse json in settings
Diffstat (limited to 'src/content/index.js')
-rw-r--r-- | src/content/index.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/content/index.js b/src/content/index.js index 1ed8463..64d86bb 100644 --- a/src/content/index.js +++ b/src/content/index.js @@ -34,8 +34,7 @@ const reloadSettings = () => { return browser.runtime.sendMessage({ type: messages.SETTINGS_QUERY, }).then((settings) => { - let keymaps = JSON.parse(settings.json).keymaps; - store.dispatch(inputActions.setKeymaps(keymaps)); + store.dispatch(inputActions.setKeymaps(settings.keymaps)); }); }; |