Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Fixing typos #16

Open
wants to merge 1 commit 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
2 changes: 1 addition & 1 deletion examples/react-content-script-ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This example will walk you through creating a UI inside a content script with is

To add a content script to the extension, create a file named `content/index.tsx` inside the `entrypoints/` directory.

> See https://wxt.dev/entrypoints/content-scripts.html for alternatie names.
> See https://wxt.dev/entrypoints/content-scripts.html for alternative names.

###### entrypoints/content/index.tsx

Expand Down
2 changes: 1 addition & 1 deletion examples/react-content-script-ui/README.template.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This example will walk you through creating a UI inside a content script with is

To add a content script to the extension, create a file named `content/index.tsx` inside the `entrypoints/` directory.

> See https://wxt.dev/entrypoints/content-scripts.html for alternatie names.
> See https://wxt.dev/entrypoints/content-scripts.html for alternative names.

{{entrypoints/content/index.tsx}}

Expand Down
8 changes: 4 additions & 4 deletions examples/vanilla-messaging-long-lived-connections/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ First, we need to setup a port to let other context's connect to.
+ if (port.name !== 'example') return;
+
+ port.onMessage.addListener((message) => {
+ console.log('Background recieved:', message);
+ console.log('Background received:', message);
+ console.log('Background sending:', 'pong');
+ port.postMessage('pong');
+ });
Expand All @@ -46,7 +46,7 @@ Then in our other files, like content scripts, options page, or popup, you need
+
+const port = browser.runtime.connect({ name: 'example' });
+port.onMessage.addListener((message) => {
+ console.log('Popup recieved:', message);
+ console.log('Popup received:', message);
+});
+console.log('Popup sending:', 'ping');
+port.postMessage('ping');
Expand All @@ -56,7 +56,7 @@ With this code, you should see messages sent to and from the background when the

```
Popup sending: ping
Background recieved: ping
Background received: ping
Background sending: pong
Popup recieved: pong
Popup received: pong
```
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ With this code, you should see messages sent to and from the background when the

```
Popup sending: ping
Background recieved: ping
Background received: ping
Background sending: pong
Popup recieved: pong
Popup received: pong
```
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default defineBackground(() => {
if (port.name !== 'example') return;

port.onMessage.addListener((message) => {
console.log('Background recieved:', message);
console.log('Background received:', message);
console.log('Background sending:', 'pong');
port.postMessage('pong');
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ setupCounter(document.querySelector<HTMLButtonElement>('#counter')!);

const port = browser.runtime.connect({ name: 'example' });
port.onMessage.addListener((message) => {
console.log('Popup recieved:', message);
console.log('Popup received:', message);
});
console.log('Popup sending:', 'ping');
port.postMessage('ping');
6 changes: 3 additions & 3 deletions examples/vanilla-messaging-one-time-requests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ This example demonstrates how to send messages to and from your background scrip
+});
```

The background recieves the message, and returns a response.
The background receives the message, and returns a response.

###### entrypoints/background.ts

Expand All @@ -37,7 +37,7 @@ The background recieves the message, and returns a response.
console.log('Hello background!', { id: browser.runtime.id });
+
+ browser.runtime.onMessage.addListener(async (message) => {
+ console.log('Background recieved:', message);
+ console.log('Background received:', message);
+ console.log('Background sending:', 'pong');
+ return 'pong';
+ });
Expand All @@ -48,7 +48,7 @@ With this code, you should see the following logs when inspecting the popup in d

```
Popup sending: ping
Background recieved: ping
Background received: ping
Background sending: pong
Popup response: pong
```
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ This example demonstrates how to send messages to and from your background scrip

{{entrypoints/popup/main.ts}}

The background recieves the message, and returns a response.
The background receives the message, and returns a response.

{{entrypoints/background.ts}}

With this code, you should see the following logs when inspecting the popup in dev tools:

```
Popup sending: ping
Background recieved: ping
Background received: ping
Background sending: pong
Popup response: pong
```
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export default defineBackground(() => {
console.log('Hello background!', { id: browser.runtime.id });

browser.runtime.onMessage.addListener(async (message) => {
console.log('Background recieved:', message);
console.log('Background received:', message);
console.log('Background sending:', 'pong');
return 'pong';
});
Expand Down
2 changes: 1 addition & 1 deletion examples/vanilla-playwright/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This example will walk you through adding E2E tests written with Playwright.

## Setup

First, install a few playwright dependencies and add a `e2e` convience script:
First, install a few playwright dependencies and add a `e2e` convenience script:

###### package.json

Expand Down
2 changes: 1 addition & 1 deletion examples/vanilla-playwright/README.template.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This example will walk you through adding E2E tests written with Playwright.

## Setup

First, install a few playwright dependencies and add a `e2e` convience script:
First, install a few playwright dependencies and add a `e2e` convenience script:

{{package.json}}

Expand Down
2 changes: 1 addition & 1 deletion examples/vanilla-puppeteer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This example will walk you through adding E2E tests written with Puppeteer and V

## Setup

First, install both dependencies and add a `e2e` convience script:
First, install both dependencies and add a `e2e` convenience script:

###### package.json

Expand Down
2 changes: 1 addition & 1 deletion examples/vanilla-puppeteer/README.template.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This example will walk you through adding E2E tests written with Puppeteer and V

## Setup

First, install both dependencies and add a `e2e` convience script:
First, install both dependencies and add a `e2e` convenience script:

{{package.json}}

Expand Down
2 changes: 1 addition & 1 deletion examples/vue-i18n/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ First, the manifest translations go in the `public/_locales` directory.
}
```

> Note that we specified the "en" locale as the deafult. We also used `extName` and `extDescription` in the manifest, which are declared in these files.
> Note that we specified the "en" locale as the default. We also used `extName` and `extDescription` in the manifest, which are declared in these files.
>
> See [Chrome's internationalization docs](https://developer.chrome.com/docs/extensions/reference/i18n/) for more details around this setup.

Expand Down
2 changes: 1 addition & 1 deletion examples/vue-i18n/README.template.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ First, the manifest translations go in the `public/_locales` directory.

{{public/_locales/ko/messages.json}}

> Note that we specified the "en" locale as the deafult. We also used `extName` and `extDescription` in the manifest, which are declared in these files.
> Note that we specified the "en" locale as the default. We also used `extName` and `extDescription` in the manifest, which are declared in these files.
>
> See [Chrome's internationalization docs](https://developer.chrome.com/docs/extensions/reference/i18n/) for more details around this setup.

Expand Down