From a927151e6f330a039cb3f8f84525e8a56025b98f Mon Sep 17 00:00:00 2001 From: Leo Shklovskii Date: Fri, 23 Feb 2024 11:41:32 -0500 Subject: [PATCH] Fixing typos --- examples/react-content-script-ui/README.md | 2 +- examples/react-content-script-ui/README.template.md | 2 +- .../vanilla-messaging-long-lived-connections/README.md | 8 ++++---- .../README.template.md | 4 ++-- .../entrypoints/background.ts | 2 +- .../entrypoints/popup/main.ts | 2 +- examples/vanilla-messaging-one-time-requests/README.md | 6 +++--- .../README.template.md | 4 ++-- .../entrypoints/background.ts | 2 +- examples/vanilla-playwright/README.md | 2 +- examples/vanilla-playwright/README.template.md | 2 +- examples/vanilla-puppeteer/README.md | 2 +- examples/vanilla-puppeteer/README.template.md | 2 +- examples/vue-i18n/README.md | 2 +- examples/vue-i18n/README.template.md | 2 +- 15 files changed, 22 insertions(+), 22 deletions(-) diff --git a/examples/react-content-script-ui/README.md b/examples/react-content-script-ui/README.md index 5a5304c..4810f43 100644 --- a/examples/react-content-script-ui/README.md +++ b/examples/react-content-script-ui/README.md @@ -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 diff --git a/examples/react-content-script-ui/README.template.md b/examples/react-content-script-ui/README.template.md index a6c1340..06d64e4 100644 --- a/examples/react-content-script-ui/README.template.md +++ b/examples/react-content-script-ui/README.template.md @@ -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}} diff --git a/examples/vanilla-messaging-long-lived-connections/README.md b/examples/vanilla-messaging-long-lived-connections/README.md index f49a600..b8c3436 100644 --- a/examples/vanilla-messaging-long-lived-connections/README.md +++ b/examples/vanilla-messaging-long-lived-connections/README.md @@ -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'); + }); @@ -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'); @@ -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 ``` diff --git a/examples/vanilla-messaging-long-lived-connections/README.template.md b/examples/vanilla-messaging-long-lived-connections/README.template.md index a5a7699..0b6f384 100644 --- a/examples/vanilla-messaging-long-lived-connections/README.template.md +++ b/examples/vanilla-messaging-long-lived-connections/README.template.md @@ -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 ``` diff --git a/examples/vanilla-messaging-long-lived-connections/entrypoints/background.ts b/examples/vanilla-messaging-long-lived-connections/entrypoints/background.ts index 9ec34f7..678c0b9 100644 --- a/examples/vanilla-messaging-long-lived-connections/entrypoints/background.ts +++ b/examples/vanilla-messaging-long-lived-connections/entrypoints/background.ts @@ -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'); }); diff --git a/examples/vanilla-messaging-long-lived-connections/entrypoints/popup/main.ts b/examples/vanilla-messaging-long-lived-connections/entrypoints/popup/main.ts index 7c6ba06..ee50a99 100644 --- a/examples/vanilla-messaging-long-lived-connections/entrypoints/popup/main.ts +++ b/examples/vanilla-messaging-long-lived-connections/entrypoints/popup/main.ts @@ -25,7 +25,7 @@ setupCounter(document.querySelector('#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'); diff --git a/examples/vanilla-messaging-one-time-requests/README.md b/examples/vanilla-messaging-one-time-requests/README.md index 9bbe14d..1993092 100644 --- a/examples/vanilla-messaging-one-time-requests/README.md +++ b/examples/vanilla-messaging-one-time-requests/README.md @@ -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 @@ -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'; + }); @@ -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 ``` diff --git a/examples/vanilla-messaging-one-time-requests/README.template.md b/examples/vanilla-messaging-one-time-requests/README.template.md index b1a51ca..8cdfb6d 100644 --- a/examples/vanilla-messaging-one-time-requests/README.template.md +++ b/examples/vanilla-messaging-one-time-requests/README.template.md @@ -6,7 +6,7 @@ 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}} @@ -14,7 +14,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 ``` diff --git a/examples/vanilla-messaging-one-time-requests/entrypoints/background.ts b/examples/vanilla-messaging-one-time-requests/entrypoints/background.ts index 89b9d7b..16837cf 100644 --- a/examples/vanilla-messaging-one-time-requests/entrypoints/background.ts +++ b/examples/vanilla-messaging-one-time-requests/entrypoints/background.ts @@ -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'; }); diff --git a/examples/vanilla-playwright/README.md b/examples/vanilla-playwright/README.md index aa1aab7..c487ba3 100644 --- a/examples/vanilla-playwright/README.md +++ b/examples/vanilla-playwright/README.md @@ -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 diff --git a/examples/vanilla-playwright/README.template.md b/examples/vanilla-playwright/README.template.md index 10cfcab..c7aa3ac 100644 --- a/examples/vanilla-playwright/README.template.md +++ b/examples/vanilla-playwright/README.template.md @@ -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}} diff --git a/examples/vanilla-puppeteer/README.md b/examples/vanilla-puppeteer/README.md index 392b53b..178d2c8 100644 --- a/examples/vanilla-puppeteer/README.md +++ b/examples/vanilla-puppeteer/README.md @@ -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 diff --git a/examples/vanilla-puppeteer/README.template.md b/examples/vanilla-puppeteer/README.template.md index 1e88cfd..3330a40 100644 --- a/examples/vanilla-puppeteer/README.template.md +++ b/examples/vanilla-puppeteer/README.template.md @@ -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}} diff --git a/examples/vue-i18n/README.md b/examples/vue-i18n/README.md index 78ce0b9..7c1441a 100644 --- a/examples/vue-i18n/README.md +++ b/examples/vue-i18n/README.md @@ -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. diff --git a/examples/vue-i18n/README.template.md b/examples/vue-i18n/README.template.md index 8fe2552..7522b1e 100644 --- a/examples/vue-i18n/README.template.md +++ b/examples/vue-i18n/README.template.md @@ -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.