aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/mode_key_handler.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'content_scripts/mode_key_handler.coffee')
-rw-r--r--content_scripts/mode_key_handler.coffee6
1 files changed, 1 insertions, 5 deletions
diff --git a/content_scripts/mode_key_handler.coffee b/content_scripts/mode_key_handler.coffee
index 7904d801..9f8206fb 100644
--- a/content_scripts/mode_key_handler.coffee
+++ b/content_scripts/mode_key_handler.coffee
@@ -34,11 +34,7 @@ class KeyHandlerMode extends Mode
blur: (event) => @alwaysContinueBubbling => @keydownEvents = {} if event.target == window
@keyTranslationRegistry = {}
- chrome.storage.local.get "keyTranslationRegistry", (obj) =>
- @keyTranslationRegistry = obj.keyTranslationRegistry
- chrome.storage.onChanged.addListener (changes, area) =>
- if area == "local" and changes.keyTranslationRegistry?.newValue?
- @keyTranslationRegistry = changes.keyTranslationRegistry.newValue
+ Utils.monitorChromeStorage "keyTranslationRegistry", (value) => @keyTranslationRegistry = value
onKeydown: (event) ->
keyChar = KeyboardUtils.getKeyCharString event