Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
PassionPenguin authored Dec 30, 2024
1 parent dfe42a4 commit 8c848ea
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`

这是一个返回 [`Promise`](/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise) 的异步函数。

Expand All @@ -30,15 +30,15 @@ let gettingIsShown = browser.pageAction.isShown(

### 返回值

[`Promise`](/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise),如果在指定的标签页中拓展的页面操作正在显示。则兑现为 `true`,否则兑现为 `false`
[`Promise`](/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise),如果在指定的标签页中拓展的页面操作正在显示。则兑现为 `true`,否则兑现为 `false`

## 浏览器兼容性

{{Compat}}

## 示例

Check the state of the currently active tab:
检查当前活动标签页的页面操作的状态。

```js
async function shownInActiveTab() {
Expand Down

0 comments on commit 8c848ea

Please sign in to comment.