Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: A1lo <[email protected]>
  • Loading branch information
PassionPenguin and yin1999 authored Sep 21, 2024
1 parent 99442fe commit 0338743
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ l10n:
{{AddonSidebar}}

> [!WARNING]
> 此 API 在 Firefox 中未实现,因为自 Chrome 33 起已被弃用。请改用 [runtime.onMessageExternal](/zh-CN/docs/Mozilla/Add-ons/WebExtensions/API/runtime/onMessageExternal)
> 因为该方法自 Chrome 33 起被弃用,该 API 在 Firefox 中并未被实现。请改用 [runtime.onMessageExternal](/zh-CN/docs/Mozilla/Add-ons/WebExtensions/API/runtime/onMessageExternal)
当来自另一个扩展的请求被发送时触发。

Expand All @@ -27,7 +27,7 @@ chrome.extension.onRequestExternal.hasListener(listener)
事件有三个函数:

- `addListener(listener)`
- : 添加一个监听该事件的监听器
- : 添加一个该事件的监听器
- `removeListener(listener)`
- : 停止监听该事件。`listener` 参数是要移除的监听器。
- `hasListener(listener)`
Expand Down

0 comments on commit 0338743

Please sign in to comment.