From f089c360f7b5b9b9a89cc6fad0f08f8c1223fe39 Mon Sep 17 00:00:00 2001 From: Alex Sherwin Date: Wed, 25 Oct 2023 09:19:45 -0400 Subject: [PATCH] fix typo at "active" to "activate" in the browser integration (#270) --- src/content/docs/integrations/browser.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/integrations/browser.mdx b/src/content/docs/integrations/browser.mdx index 5b9d93c2..295ff550 100644 --- a/src/content/docs/integrations/browser.mdx +++ b/src/content/docs/integrations/browser.mdx @@ -47,7 +47,7 @@ export const worker = setupWorker(...handlers) ## Conditionally enable mocking -Lastly, we need to start the worker by calling `worker.start()`, which will register and active the Service Worker. We also only want to enable API mocking in development so our production traffic is unaffected. +Lastly, we need to start the worker by calling `worker.start()`, which will register and activate the Service Worker. We also only want to enable API mocking in development so our production traffic is unaffected. Because regsitering the Service Worker is an asynchronous operation, it's a good idea to defer the rendering of your application until the registration Promise resolves.