mdn/content

onCommand: Add tab - add example

Open

#33.008 geöffnet am 9. Apr. 2024

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (1 zugewiesene Person)Markdown (22.427 Forks)batch import
Content:WebExthelp wanted

Repository-Metriken

Stars
 (8.900 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 7T 3h) (147 gemergte PRs in 30 T)

Beschreibung

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