Files
webextensions-examples/commands/background.js
T
2016-03-07 15:21:01 -08:00

10 lines
250 B
JavaScript

browser.commands.getAll(function(commands) {
commands.forEach(function(command) {
console.log(command);
});
});
browser.commands.onCommand.addListener(function(command) {
console.log("onCommand event received for message: ", command);
});