mdn/content

onCommand: Add tab - add example

Open

#33 008 ouverte le 9 avr. 2024

Voir sur GitHub
 (0 commentaires) (0 réactions) (1 assigné)Markdown (22 427 forks)batch import
Content:WebExthelp wanted

Métriques du dépôt

Stars
 (8 900 stars)
Métriques de merge PR
 (Merge moyen 7j 3h) (147 PRs mergées en 30 j)

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

Guide contributeur