Merge pull request #56 from minj/commands-example-fix

Thanks @minj !
This commit is contained in:
wbamberg
2016-05-02 21:17:29 -07:00

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