Skip to content

Commit

Permalink
Update index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
PassionPenguin authored Dec 23, 2024
1 parent 87516f2 commit e5ae133
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ let settingIcon = browser.sidebarAction.setIcon(
Use a dictionary object to specify multiple `ImageData` objects in different sizes, so the icon does not have to be scaled for a device with a different pixel density. If `imageData` is a dictionary, the value of each property is an `ImageData` object, and its name is its size, like this:

```js
let settingIcon = browser.action.setIcon({
let settingIcon = browser.sidebarAction.setIcon({
imageData: {
16: image16,
32: image32,
Expand All @@ -65,7 +65,7 @@ let settingIcon = browser.sidebarAction.setIcon(
Use a dictionary object to specify multiple icon files in different sizes, so the icon does not have to be scaled for a device with a different pixel density. If `path` is a dictionary, the value of each property is a relative path, and its name is its size, like this:
```js
let settingIcon = browser.action.setIcon({
let settingIcon = browser.sidebarAction.setIcon({
path: {
16: "path/to/image16.jpg",
32: "path/to/image32.jpg",
Expand Down

0 comments on commit e5ae133

Please sign in to comment.