Home Manual Reference Source Test

src/browser/background/commands.js

chrome.commands.onCommand.addListener(function (command) {
    (pages || []).forEach(page => {
        page.postMessage({method: command, args: []});
    });
});