Skip to content

Commit

Permalink
docs: await worker.start() in the example
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito committed Mar 18, 2024
1 parent cf97991 commit 9a64ec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const worker = setupWorker(
)

// 3. Start request interception by starting the Service Worker.
worker.start()
await worker.start()
```

Performing a `GET https://github.com/octocat` request in your application will result into a mocked response that you can inspect in your browser's "Network" tab:
Expand Down

0 comments on commit 9a64ec7

Please sign in to comment.