From b9e30e8fb3390cda23868e5b533b94c15c976aad Mon Sep 17 00:00:00 2001 From: Akshay Deo Date: Wed, 10 Aug 2022 17:29:00 +0530 Subject: [PATCH] doc Added worldId info in `exposeInIsoaltedWorld` API documentation --- docs/api/context-bridge.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/context-bridge.md b/docs/api/context-bridge.md index 93949d374a292..6699d5ef59fdf 100644 --- a/docs/api/context-bridge.md +++ b/docs/api/context-bridge.md @@ -48,7 +48,7 @@ The `contextBridge` module has the following methods: ### `contextBridge.exposeInIsolatedWorld(worldId, apiKey, api)` -* `worldId` Integer - The ID of the world to inject the API into. This has to be an existing world. +* `worldId` Integer - The ID of the world to inject the API into. This has to be an existing world. 0 is the default world, 999 is the world used by Electrons contextIsolation feature. Chrome extensions reserve the range of IDs in [1 << 20, 1 << 29). You can provide any integer here. * `apiKey` string - The key to inject the API onto `window` with. The API will be accessible on `window[apiKey]`. * `api` any - Your API, more information on what this API can be and how it works is available below.