mdn/content

onCommand: Add tab - add example

Open

#33,008 opened on Apr 9, 2024

View on GitHub
 (0 comments) (0 reactions) (1 assignee)Markdown (22,427 forks)batch import
Content:WebExthelp wanted

Repository metrics

Stars
 (8,900 stars)
PR merge metrics
 (Avg merge 7d 3h) (147 merged PRs in 30d)

Description

MDN URL

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/commands/onCommand

What specific section or headline is this issue about?

Examples

What information was incorrect, unhelpful, or incomplete?

Since Bug 1843866: Add tab parameter to commands.onCommand has landed, adding an example would be beneficial.

Previously: #29555

What did you expect to see?

Add an example with browser.commands.onCommand.addListener((command, tab) => { ... }`

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

Contributor guide