November 2019
Beginner
436 pages
8h 52m
English
Now, we can send messages from the main process back to the renderer. According to our initial scenario, we are going to handle application menu clicks and let the renderer process know about user interactions.
To send messages to the renderer process, we need to know what window we should address. Electron supports multiple windows with different content, and our code needs to know or figure out which window contains the editor component. For the sake of simplicity, let's access the focused window object since we have only a single-window application right now:
const { BrowserWindow } = require('electron');
The format of the call is as ...
Read now
Unlock full access