Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zh-CN: create sidebarAction.setIcon() #24900

Merged
merged 11 commits into from
Dec 22, 2024
Prev Previous commit
Update files/zh-cn/mozilla/add-ons/webextensions/api/sidebaraction/se…
…ticon/index.md
  • Loading branch information
yin1999 authored Dec 22, 2024
commit be2cf49f5b858ff7e4063afbba29315611b0aab5
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ l10n:

如果你使用 `setIcon()` 设置一个新图标,并包含 `windowId` 选项,那么将仅为给定的窗口设置图标。这个图标称为“_窗口特定图标_”,并将出现在该窗口的所有没有设置标签页特定图标的标签页中。

如果你使用 `setIcon()` 设置一个新图标,并省略 `tabId` 和 `windowId` 选项,那么这将设置“_全局图标_”。全局图标将出现在所有没有设置标签页特定图标的标签中,且其窗口没有设置窗口特定图标的标签中
如果你使用 `setIcon()` 设置一个新图标,并省略 `tabId` 和 `windowId` 选项,那么这将设置“_全局图标_”。全局图标将出现在所有没有设置标签页特定图标的标签页中,且其窗口没有设置窗口特定图标的标签页中

## 语法

Expand Down
Loading