diff options
Diffstat (limited to 'background_scripts/commands.coffee')
| -rw-r--r-- | background_scripts/commands.coffee | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee index 2e597e32..65d09d68 100644 --- a/background_scripts/commands.coffee +++ b/background_scripts/commands.coffee @@ -20,7 +20,7 @@ Commands = # command passed to it. This is used to implement e.g. "closing of 3 tabs". addCommand: (command, description, options) -> if command of @availableCommands - logMessage? "#{command} is already defined! Check commands.coffee for duplicates." + BgUtils.log "#{command} is already defined! Check commands.coffee for duplicates." return options ||= {} @@ -28,7 +28,7 @@ Commands = mapKeyToCommand: ({ key, command, options }) -> unless @availableCommands[command] - logMessage? "#{command} doesn't exist!" + BgUtils.log "#{command} doesn't exist!" return options ?= {} @@ -57,13 +57,13 @@ Commands = [ _, key, command, optionList... ] = tokens if command? and @availableCommands[command] key = @normalizeKey key - logMessage? "Mapping #{key} to #{command}" + BgUtils.log "Mapping #{key} to #{command}" @mapKeyToCommand { key, command, options: @parseCommandOptions command, optionList } when "unmap" if tokens.length == 2 key = @normalizeKey tokens[1] - logMessage? "Unmapping #{key}" + BgUtils.log "Unmapping #{key}" delete @keyToCommandRegistry[key] when "unmapAll" |
