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

WebExt: fix typo in examples #37348

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ let settingIcon = browser.browserAction.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.browserAction.setIcon({
imageData: {
16: image16,
32: image32,
Expand All @@ -55,7 +55,7 @@ let settingIcon = browser.browserAction.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.browserAction.setIcon({
path: {
16: "path/to/image16.jpg",
32: "path/to/image32.jpg",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ let settingIcon = browser.pageAction.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.pageAction.setIcon({
imageData: {
16: image16,
32: image32,
Expand All @@ -53,7 +53,7 @@ let settingIcon = browser.pageAction.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.pageAction.setIcon({
path: {
16: "path/to/image16.jpg",
32: "path/to/image32.jpg",
Expand Down
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
Loading