diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-11-13 20:15:53 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-13 20:15:53 +0900 |
commit | 44bbadde3ac3241420fa1a7b634d02f9226225fd (patch) | |
tree | aa151e12a7eb0bdcc22bc92302f4cf3e0a521319 /src/content/actions/setting.js | |
parent | c7b05482f33cc778e1966faa9354ea46b490a115 (diff) | |
parent | c202ab052917794b7d3f7af3413d2d0fcd1b3bba (diff) |
Merge pull request #150 from ueokande/qa-0.5
QA 0.5
Diffstat (limited to 'src/content/actions/setting.js')
-rw-r--r-- | src/content/actions/setting.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/content/actions/setting.js b/src/content/actions/setting.js index 353dd24..0238c71 100644 --- a/src/content/actions/setting.js +++ b/src/content/actions/setting.js @@ -2,21 +2,20 @@ import actions from 'content/actions'; import * as keyUtils from 'shared/utils/keys'; const set = (value) => { - let maps = new Map(); + let entries = []; if (value.keymaps) { - let entries = Object.entries(value.keymaps).map((entry) => { + entries = Object.entries(value.keymaps).map((entry) => { return [ keyUtils.fromMapKeys(entry[0]), entry[1], ]; }); - maps = new Map(entries); } return { type: actions.SETTING_SET, value: Object.assign({}, value, { - keymaps: maps, + keymaps: entries, }) }; }; |