From c202ab052917794b7d3f7af3413d2d0fcd1b3bba Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Mon, 13 Nov 2017 19:44:19 +0900 Subject: fix hot-reload settings --- src/content/components/common/keymapper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/content/components') diff --git a/src/content/components/common/keymapper.js b/src/content/components/common/keymapper.js index 0abbc91..fb8fabe 100644 --- a/src/content/components/common/keymapper.js +++ b/src/content/components/common/keymapper.js @@ -25,7 +25,7 @@ export default class KeymapperComponent { let state = this.store.getState(); let input = state.input; - let keymaps = state.setting.keymaps; + let keymaps = new Map(state.setting.keymaps); let matched = Array.from(keymaps.keys()).filter((mapping) => { return mapStartsWith(mapping, input.keys); -- cgit v1.2.3