mdn/content

onCommand: Add tab - add example

Open

#33,008 创建于 2024年4月9日

在 GitHub 查看
 (0 评论) (0 反应) (1 负责人)Markdown (22,427 fork)batch import
Content:WebExthelp wanted

仓库指标

Star
 (8,900 star)
PR 合并指标
 (平均合并 7天 3小时) (30 天内合并 147 个 PR)

描述

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

贡献者指南