Skip to content

Commit

Permalink
fix typo at "active" to "activate" in the browser integration (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-sherwin authored Oct 25, 2023
1 parent 7f03a68 commit f089c36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/docs/integrations/browser.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit f089c36

Please # to comment.