List of Listings
Chapter 2. Your first Electron application
Listing 2.1. Adding a start script to package.json
Listing 2.2. Adding a basic main process: ./app/main.js
Listing 2.3. Requiring the BrowserWindow module: ./app/main.js
Listing 2.4. Creating a BrowserWindow: ./app/main.js
Listing 2.5. Creating index.html: ./app/index.html
Listing 2.6. Loading an HTML document into the main window: ./app/main.js
Listing 2.7. Adding a button to an HTML document: ./app/index.html
Listing 2.8. Adding script with Node.js global in the browser context: ./app/index.html
Listing 2.9. Loading JavaScript from renderer.js: ./app/index.html
Listing 2.10. Adding basic styles: ./app/style.css
Listing 2.11. Referencing a stylesheet in the HTML document: ./app/index.html ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access