fix commands undefined error

This commit is contained in:
Mindaugas Jakutis
2016-05-02 13:27:54 +03:00
parent 2b9598b928
commit e59725e182

View File

@@ -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);
});
});