From a1cf7228f47c2f4c837a442deb7b07d94b5dd2b1 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sun, 28 Feb 2016 11:33:12 +0000 Subject: Fix defualt command "options". The default (for when no options are provided) is of the wrong type. This works as is, but should really be fixed -- as here. --- background_scripts/commands.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'background_scripts') diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee index 4b087060..ab9992b3 100644 --- a/background_scripts/commands.coffee +++ b/background_scripts/commands.coffee @@ -29,7 +29,7 @@ Commands = logMessage? "#{command} doesn't exist!" return - options ?= [] + options ?= {} @keyToCommandRegistry[key] = extend { command, options }, @availableCommands[command] # Lower-case the appropriate portions of named keys. -- cgit v1.2.3