@@ -11,6 +11,12 @@ hide_title: false
1111
1212Process: [ Renderer] ( ../glossary.md#renderer-process )
1313
14+ > [ !IMPORTANT]
15+ > If you want to call this API from a renderer process with context isolation enabled,
16+ > place the API call in your preload script and
17+ > [ expose] ( ../tutorial/context-isolation.md#after-context-isolation-enabled ) it using the
18+ > [ ` contextBridge ` ] ( context-bridge.md ) API.
19+
1420` webFrame ` export of the Electron module is an instance of the ` WebFrame `
1521class representing the current frame. Sub-frames can be retrieved by
1622certain properties and methods (e.g. ` webFrame.firstChild ` ).
@@ -146,7 +152,7 @@ by its key, which is returned from `webFrame.insertCSS(css)`.
146152
147153Inserts ` text ` to the focused element.
148154
149- ### ` webFrame.executeJavaScript(code[, userGesture, callback]) `
155+ ### ` webFrame.executeJavaScript(code[, userGesture][ , callback]) `
150156
151157* ` code ` string
152158* ` userGesture ` boolean (optional) - Default is ` false ` .
@@ -167,7 +173,7 @@ In the browser window some HTML APIs like `requestFullScreen` can only be
167173invoked by a gesture from the user. Setting ` userGesture ` to ` true ` will remove
168174this limitation.
169175
170- ### ` webFrame.executeJavaScriptInIsolatedWorld(worldId, scripts[, userGesture, callback]) `
176+ ### ` webFrame.executeJavaScriptInIsolatedWorld(worldId, scripts[, userGesture][ , callback]) `
171177
172178* ` worldId ` Integer - The ID of the world to run the javascript
173179 in, ` 0 ` is the default main world (where content runs), ` 999 ` is the
0 commit comments