From 20c1f504ae7babfd5e3374d649605c6ffa2e7b3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B3n=20Molleda?= Date: Sun, 4 Jul 2021 16:46:47 -0700 Subject: [PATCH] docs: remove `Experimental` from `contextBridge.exposeInMainWorld` (#29985) The API has been around for about 3 years. It should no longer be considered experimental. --- docs/api/context-bridge.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/context-bridge.md b/docs/api/context-bridge.md index 8db3006cc9ba..083bee6a992f 100644 --- a/docs/api/context-bridge.md +++ b/docs/api/context-bridge.md @@ -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. @@ -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