File tree Expand file tree Collapse file tree 6 files changed +36
-0
lines changed Expand file tree Collapse file tree 6 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 44
55Process: [ Main] ( ../glossary.md#main-process ) , [ Renderer] ( ../glossary.md#renderer-process ) (non-sandboxed only)
66
7+ > [ !IMPORTANT]
8+ > If you want to call this API from a renderer process with context isolation enabled,
9+ > place the API call in your preload script and
10+ > [ expose] ( ../tutorial/context-isolation.md#after-context-isolation-enabled ) it using the
11+ > [ ` contextBridge ` ] ( context-bridge.md ) API.
12+
713On Linux, there is also a ` selection ` clipboard. To manipulate it
814you need to pass ` selection ` to each method:
915
Original file line number Diff line number Diff line change 44
55Process: [ Main] ( ../glossary.md#main-process ) , [ Renderer] ( ../glossary.md#renderer-process )
66
7+ > [ !IMPORTANT]
8+ > If you want to call this API from a renderer process with context isolation enabled,
9+ > place the API call in your preload script and
10+ > [ expose] ( ../tutorial/context-isolation.md#after-context-isolation-enabled ) it using the
11+ > [ ` contextBridge ` ] ( context-bridge.md ) API.
12+
713The following is an example of setting up Electron to automatically submit
814crash reports to a remote server:
915
Original file line number Diff line number Diff line change @@ -20,6 +20,12 @@ changes:
2020
2121Process: [ Renderer] ( ../glossary.md#renderer-process )
2222
23+ > [ !IMPORTANT]
24+ > If you want to call this API from a renderer process with context isolation enabled,
25+ > place the API call in your preload script and
26+ > [ expose] ( ../tutorial/context-isolation.md#after-context-isolation-enabled ) it using the
27+ > [ ` contextBridge ` ] ( context-bridge.md ) API.
28+
2329The ` ipcRenderer ` module is an [ EventEmitter] [ event-emitter ] . It provides a few
2430methods so you can send synchronous and asynchronous messages from the render
2531process (web page) to the main process. You can also receive replies from the
Original file line number Diff line number Diff line change 44
55Process: [ Main] ( ../glossary.md#main-process ) , [ Renderer] ( ../glossary.md#renderer-process )
66
7+ > [ !IMPORTANT]
8+ > If you want to call this API from a renderer process with context isolation enabled,
9+ > place the API call in your preload script and
10+ > [ expose] ( ../tutorial/context-isolation.md#after-context-isolation-enabled ) it using the
11+ > [ ` contextBridge ` ] ( context-bridge.md ) API.
12+
713The ` nativeImage ` module provides a unified interface for manipulating
814system images. These can be handy if you want to provide multiple scaled
915versions of the same icon or take advantage of macOS [ template images] [ template-image ] .
Original file line number Diff line number Diff line change 44
55Process: [ Renderer] ( ../glossary.md#renderer-process )
66
7+ > [ !IMPORTANT]
8+ > If you want to call this API from a renderer process with context isolation enabled,
9+ > place the API call in your preload script and
10+ > [ expose] ( ../tutorial/context-isolation.md#after-context-isolation-enabled ) it using the
11+ > [ ` contextBridge ` ] ( context-bridge.md ) API.
12+
713` webFrame ` export of the Electron module is an instance of the ` WebFrame `
814class representing the current frame. Sub-frames can be retrieved by
915certain properties and methods (e.g. ` webFrame.firstChild ` ).
Original file line number Diff line number Diff line change 44
55Process: [ Renderer] ( ../glossary.md#renderer-process )
66
7+ > [ !IMPORTANT]
8+ > If you want to call this API from a renderer process with context isolation enabled,
9+ > place the API call in your preload script and
10+ > [ expose] ( ../tutorial/context-isolation.md#after-context-isolation-enabled ) it using the
11+ > [ ` contextBridge ` ] ( context-bridge.md ) API.
12+
713## Methods
814
915The ` webUtils ` module has the following methods:
You can’t perform that action at this time.
0 commit comments