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

貢獻者指南