From e59725e182552fcf0b97d418b5611cd89530ae4f Mon Sep 17 00:00:00 2001 From: Mindaugas Jakutis <4mr.minj@gmail.com> Date: Mon, 2 May 2016 13:27:54 +0300 Subject: [PATCH] fix commands undefined error --- commands/background.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/background.js b/commands/background.js index 0e4d361..e4a12ee 100644 --- a/commands/background.js +++ b/commands/background.js @@ -10,7 +10,7 @@ * shortcut: "Ctrl+Shift+Y" * }] */ -chrome.commands.getAll(function(commandsArray) { +chrome.commands.getAll(function(commands) { commands.forEach(function(command) { console.log(command); }); @@ -24,4 +24,4 @@ chrome.commands.getAll(function(commandsArray) { */ chrome.commands.onCommand.addListener(function(command) { console.log("onCommand event received for message: ", command); -}); \ No newline at end of file +});