Live video on the AT Protocol
at next 33 lines 967 B view raw
1/** 2 * This file will automatically be loaded by webpack and run in the "renderer" context. 3 * To learn more about the differences between the "main" and the "renderer" context in 4 * Electron, visit: 5 * 6 * https://electronjs.org/docs/latest/tutorial/process-model 7 * 8 * By default, Node.js integration in this file is disabled. When enabling Node.js integration 9 * in a renderer process, please be aware of potential security implications. You can read 10 * more about security risks here: 11 * 12 * https://electronjs.org/docs/tutorial/security 13 * 14 * To enable Node.js integration in this file, open up `main.js` and enable the `nodeIntegration` 15 * flag: 16 * 17 * ``` 18 * // Create the browser window. 19 * mainWindow = new BrowserWindow({ 20 * width: 800, 21 * height: 600, 22 * webPreferences: { 23 * nodeIntegration: true 24 * } 25 * }); 26 * ``` 27 */ 28 29import "./index.css"; 30 31console.log( 32 '👋 This message is being logged by "renderer.js", included via webpack', 33);