From 9a64ec7f5ef9ef1cc5dc89b67ea49be29476c538 Mon Sep 17 00:00:00 2001 From: Artem Zakharchenko Date: Mon, 18 Mar 2024 18:25:15 +0100 Subject: [PATCH] docs: await worker.start() in the example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3b7daea79..08316dab2 100644 --- a/README.md +++ b/README.md @@ -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: