Skip to content

Commit

Permalink
doc Added worldId info in exposeInIsoaltedWorld API documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaydeo committed Aug 10, 2022
1 parent 10f3e4d commit b9e30e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/context-bridge.md
Expand Up @@ -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.

Expand Down

0 comments on commit b9e30e8

Please sign in to comment.