Skip to content

Commit

Permalink
docs: remove Experimental from contextBridge.exposeInMainWorld (#…
Browse files Browse the repository at this point in the history
…30010)

The API has been around for about 3 years. It should no longer be
considered experimental.

Co-authored-by: Antón Molleda <amolleda@gmail.com>
  • Loading branch information
trop[bot] and molant committed Jul 5, 2021
1 parent 2195890 commit 642c458
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api/context-bridge.md
Expand Up @@ -41,7 +41,7 @@ When `contextIsolation` is enabled in your `webPreferences` (this is the default

The `contextBridge` module has the following methods:

### `contextBridge.exposeInMainWorld(apiKey, api)` _Experimental_
### `contextBridge.exposeInMainWorld(apiKey, api)`

* `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 All @@ -50,7 +50,7 @@ The `contextBridge` module has the following methods:

### API

The `api` provided to [`exposeInMainWorld`](#contextbridgeexposeinmainworldapikey-api-experimental) must be a `Function`, `String`, `Number`, `Array`, `Boolean`, or an object
The `api` provided to [`exposeInMainWorld`](#contextbridgeexposeinmainworldapikey-api) must be a `Function`, `String`, `Number`, `Array`, `Boolean`, or an object
whose keys are strings and values are a `Function`, `String`, `Number`, `Array`, `Boolean`, or another nested object that meets the same conditions.

`Function` values are proxied to the other context and all other values are **copied** and **frozen**. Any data / primitives sent in
Expand Down

0 comments on commit 642c458

Please sign in to comment.