aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/commands.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'background_scripts/commands.coffee')
-rw-r--r--background_scripts/commands.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee
index 46869451..a36b0c7e 100644
--- a/background_scripts/commands.coffee
+++ b/background_scripts/commands.coffee
@@ -1,5 +1,5 @@
Commands =
- init: () ->
+ init: ->
for own command, description of commandDescriptions
@addCommand(command, description[0], description[1])
@loadKeyMappings Settings.get "keyMappings"
@@ -115,7 +115,7 @@ Commands =
if currentMapping[key]?.command
break # Do not overwrite existing command bindings, they take priority.
else if 0 < keys.length
- currentMapping = (currentMapping[key] ?= {})
+ currentMapping = currentMapping[key] ?= {}
else
currentMapping[key] = registryEntry
chrome.storage.local.set normalModeKeyStateMapping: keyStateMapping