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 Aug 7, 2024
1 parent 66d670d commit 352c459
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ l10n:

{{AddonSidebar}}

在浏览器操作被启用时返回 `true`
如果浏览器操作已启用,则返回 `true`

> [!NOTE]
> 该 API 在 Manifest V3 或更高版本中可用。
Expand All @@ -26,7 +26,7 @@ let gettingIsEnabled = browser.action.isEnabled(

- `details`

- : `object`可选的包含 `tabId``windowId` 用于检查的对象
- : `object`可选的包含要检查的 `tabId``windowId` 的对象

- `tabId` {{optional_inline}}
- : `integer`,指定要检查的标签页的 id。
Expand All @@ -40,7 +40,7 @@ let gettingIsEnabled = browser.action.isEnabled(

### 返回值

`true`(启用)、`false`(禁用)形式兑现插件的浏览器操作状态的 [`Promise`](/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise)
[`Promise`](/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise),如果浏览器操作已启用,则兑现 `true`,否则兑现 `false`

## 示例

Expand Down

0 comments on commit 352c459

Please sign in to comment.